Package org.simplesim.core.messaging
Class RoutingMessage
java.lang.Object
org.simplesim.core.messaging.AbstractMessage<int[]>
org.simplesim.core.messaging.RoutingMessage
Special message class for using auto routing.
If using a RoutingPort
to use the routing functionality,
messages have to be derived from this class.
The addresses describe the model's branch within the model tree as int arrays. The level of the tree is the index of the array whereas the actual number is the id of the agent within the model level. The level of the root domain is always 0.
This class is immutable and thus thread-safe.
-
Constructor Summary
-
Method Summary
Methods inherited from class org.simplesim.core.messaging.AbstractMessage
getContent, getDestination, getSource