public class TimeModelStroke extends TimeModel
EnvironmentModel
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROP_CounterCurrent |
static java.lang.String |
PROP_CounterStart |
static java.lang.String |
PROP_CounterStop |
Constructor and Description |
---|
TimeModelStroke()
Instantiates a new time model stroke.
|
TimeModelStroke(java.lang.Integer currentCounterValue)
Instantiates a new time model stroke.
|
TimeModelStroke(java.lang.Integer counterValueStart,
java.lang.Integer counterValueStop)
Instantiates a new time model stroke.
|
Modifier and Type | Method and Description |
---|---|
TimeModel |
getCopy()
Returns a copy of the current TimeModel.
|
java.lang.Integer |
getCounter()
Returns the current counter.
|
int |
getCounterStart()
Returns the value at which the TimeModel starts.
|
int |
getCounterStop()
Returns the value to stop the TimeModel.
|
TimeModelBaseExecutionElements |
getDisplayElements4Execution()
Returns a DisplayJToolBar4Execution (an extended JToolBar) that consists of the necessary
tools to handle a TimeModel during execution.
|
JPanel4TimeModelConfiguration |
getJPanel4Configuration(Project project)
Returns the DisplayJPanel4Configuration.java (an extended JPanel) for the configuration
of a TimeModel (before the agency is executed).
|
java.util.HashMap<java.lang.String,java.lang.String> |
getTimeModelSetting()
Returns the setup configuration of the TimeModel as HashSet
|
void |
setCounter(java.lang.Integer counter)
Sets the current counter.
|
void |
setCounterStart(int counterStart)
Sets the value at which the TimeModel starts.
|
void |
setCounterStop(int counterStop)
Sets the value to stop the TimeModel.
|
void |
setTimeModelSettings(java.util.HashMap<java.lang.String,java.lang.String> timeModelSettings)
Sets the setup configuration as HashSet
|
void |
step()
Steps the TimeModel.
|
void |
stepBack()
Steps the TimeModel.
|
getStopWatch, setStopWatch
public static final java.lang.String PROP_CounterStart
public static final java.lang.String PROP_CounterStop
public static final java.lang.String PROP_CounterCurrent
public TimeModelStroke()
public TimeModelStroke(java.lang.Integer currentCounterValue)
currentCounterValue
- the position number the counter is currently setpublic TimeModelStroke(java.lang.Integer counterValueStart, java.lang.Integer counterValueStop)
counterValueStart
- the counter start valuecounterValueStop
- the counter stop valuepublic TimeModel getCopy()
TimeModel
public void step()
TimeModel
public void stepBack()
TimeModel
public void setCounterStart(int counterStart)
counterStart
- the new counter startpublic int getCounterStart()
public void setCounterStop(int counterStop)
counterStop
- the new counter stoppublic int getCounterStop()
public void setCounter(java.lang.Integer counter)
counter
- the counter to setpublic java.lang.Integer getCounter()
public JPanel4TimeModelConfiguration getJPanel4Configuration(Project project)
TimeModel
getJPanel4Configuration
in class TimeModel
project
- the current Agent.GUI Projectpublic TimeModelBaseExecutionElements getDisplayElements4Execution()
TimeModel
getDisplayElements4Execution
in class TimeModel
public void setTimeModelSettings(java.util.HashMap<java.lang.String,java.lang.String> timeModelSettings)
TimeModel
setTimeModelSettings
in class TimeModel
timeModelSettings
- the time model setup configuration as HashSetpublic java.util.HashMap<java.lang.String,java.lang.String> getTimeModelSetting()
TimeModel
getTimeModelSetting
in class TimeModel