Package org.simplesim.model
Class RoutingDomain
java.lang.Object
org.simplesim.model.BasicModelEntity
org.simplesim.model.BasicDomain
org.simplesim.model.RoutingDomain
- All Implemented Interfaces:
Domain
,ModelEntity
- Direct Known Subclasses:
DynamicModel
,Floor
,SimpleDomain
Implements a domain suited for automatic message routing by using the message's address tag.
Domains serve as a compartment for other entities within the simulation model. These entities may be agents or other
domains. Therefore, simulation model are build as a tree-like structure with Domain
as branching and
Agent
as leaf, resembling a composite pattern. The domain adds the following features:
- offer message routing by adding a
RoutingPort
- give an overview of the entities contained in this domain
- list all agents in this domain and its subdomains
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.simplesim.model.ModelEntity
ModelEntity.PortConnectionException, ModelEntity.PortOperationException, ModelEntity.UniqueConstraintViolationException
-
Field Summary
Fields inherited from class org.simplesim.model.BasicDomain
ROOT_ADDRESS
Fields inherited from interface org.simplesim.model.ModelEntity
ROOT_LEVEL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Defines the domain as root domain of the model.Methods inherited from class org.simplesim.model.BasicDomain
listAllAgents, listDomainEntities
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.Domain
containsEntity, countDomainEntities, getRoot, isEmpty, isRoot
Methods inherited from interface org.simplesim.model.ModelEntity
addToDomain, getAddress, getFullName, getInport, getLevel, getName, getOutport, getParent, removeFromDomain
-
Constructor Details
-
RoutingDomain
public RoutingDomain()
-
-
Method Details
-
setAsRootDomain
public void setAsRootDomain()Defines the domain as root domain of the model.Should be called from the constructor of the derived class or during model building. Only call once!
-