Package org.baseagent.behaviors
Class LifecycleBehavior
java.lang.Object
org.baseagent.behaviors.LifecycleBehavior
- All Implemented Interfaces:
Behavior
- Direct Known Subclasses:
TakeAndDropBehavior
,WalkToBehavior
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
endBehavior
(Agent agent) boolean
isEnded()
boolean
isPaused()
boolean
void
pauseBehavior
(Agent agent) void
restartBehavior
(Agent agent) void
resumeBehavior
(Agent agent) void
startBehavior
(Agent agent) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.baseagent.behaviors.Behavior
executeBehavior
-
Constructor Details
-
LifecycleBehavior
public LifecycleBehavior()
-
-
Method Details
-
startBehavior
-
pauseBehavior
-
resumeBehavior
-
endBehavior
-
isStarted
public boolean isStarted() -
isEnded
public boolean isEnded() -
isPaused
public boolean isPaused() -
restartBehavior
-