Package org.simplesim.model
Class RoutingAgent<S extends State,E>
java.lang.Object
org.simplesim.model.BasicModelEntity
org.simplesim.model.BasicAgent<S,E>
org.simplesim.model.RoutingAgent<S,E>
- All Implemented Interfaces:
Agent
,ModelEntity
- Direct Known Subclasses:
DynamicElevator
,DynamicVisitor
,SimpleAgent
Extension of an
AbstractAgent
to enable massage routing.
When using message routing, there is no direct connection between source and destination. Rather the address is
specified in the message envelope. This can be used to route the message to the right destination. So the agent needs
only one inport and one outport. These are connected to the parent domain which does the actual routing. Therefore,
the parent must be a RoutingDomain
.
Note: Connection of ports is done automatically when adding this agent to a RoutingDomain
.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.simplesim.model.Agent
Agent.UnknownEventType
Nested classes/interfaces inherited from interface org.simplesim.model.ModelEntity
ModelEntity.PortConnectionException, ModelEntity.PortOperationException, ModelEntity.UniqueConstraintViolationException
-
Field Summary
Fields inherited from interface org.simplesim.model.ModelEntity
ROOT_LEVEL
-
Constructor Summary
-
Method Summary
Methods inherited from class org.simplesim.model.BasicAgent
getState, getTimeOfNextEvent, isSimulationRunning, pollModelChangeRequest, toggleSimulationIsRunning
Methods inherited from class org.simplesim.model.BasicModelEntity
addToDomain, equals, getAddress, getFullName, getInport, getLevel, getName, getOutport, getParent, removeFromDomain, toString
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.simplesim.model.ModelEntity
addToDomain, getAddress, getFullName, getInport, getLevel, getName, getOutport, getParent, removeFromDomain
-
Constructor Details
-
RoutingAgent
-
RoutingAgent
-