Package org.baseagent.behaviors
Class SwitchingBehavior
java.lang.Object
org.baseagent.behaviors.SwitchingBehavior
- All Implemented Interfaces:
Behavior
,MessageListener
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addBehavior
(String category, String identifier, Behavior behavior) void
executeBehavior
(Agent agent) void
onMessageReceived
(Message message) void
switchBehavior
(String category, String identifier)
-
Constructor Details
-
SwitchingBehavior
public SwitchingBehavior()
-
-
Method Details
-
addBehavior
-
switchBehavior
-
executeBehavior
- Specified by:
executeBehavior
in interfaceBehavior
-
onMessageReceived
- Specified by:
onMessageReceived
in interfaceMessageListener
-