|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.xabsl.jxabsl.symbols.NamedItem
de.xabsl.jxabsl.behavior.Behavior
public abstract class Behavior
Parent class for Option and BasicBehavior
Field Summary | |
---|---|
protected boolean |
active
|
protected Parameters |
parameters
|
protected TimeFunction |
timeOfExecution
|
protected long |
timeWhenActivated
|
protected long |
tOE
|
protected boolean |
wasActive
|
Fields inherited from class de.xabsl.jxabsl.symbols.NamedItem |
---|
debug, name |
Constructor Summary | |
---|---|
Behavior(java.lang.String name,
DebugMessages debug)
Constructor. |
Method Summary | |
---|---|
abstract void |
execute()
executes the behavior |
Parameters |
getParameters()
|
long |
getTimeOfExecution()
the time how long the option is already active |
long |
getTimeWhenActivated()
the time when the option was activated |
boolean |
isActive()
the behavior is activated in the current path through the option graph |
void |
setActive(boolean active)
set if the behavior is activated in the current path through the option graph |
void |
setTimeOfExecution(long timeOfExecution)
set the time how long the option is already active |
void |
setTimeWhenActivated(long timeWhenActivated)
set the time when the option was activated |
void |
setWasActive(boolean active)
set if the behavior was activated in the last path through the option graph |
boolean |
wasActive()
the behavior was activated in the last path through the option graph |
Methods inherited from class de.xabsl.jxabsl.symbols.NamedItem |
---|
getName, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected boolean active
protected boolean wasActive
protected long tOE
protected TimeFunction timeOfExecution
protected long timeWhenActivated
protected Parameters parameters
Constructor Detail |
---|
public Behavior(java.lang.String name, DebugMessages debug)
name
- The name of the behavior. For debugging purposes.Method Detail |
---|
public boolean isActive()
public void setActive(boolean active)
public boolean wasActive()
public void setWasActive(boolean active)
public abstract void execute()
public Parameters getParameters()
public void setTimeWhenActivated(long timeWhenActivated)
public long getTimeWhenActivated()
public void setTimeOfExecution(long timeOfExecution)
public long getTimeOfExecution()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |