java.lang.Object
org.bzdev.devqsim.SimObject
org.bzdev.drama.generic.GenericSimObject<S,A,C,D,DM,F,G>
org.bzdev.drama.generic.GenericTaskObject<S,A,C,D,DM,F,G>
org.bzdev.drama.generic.GenericDomain<DramaSimulation,Actor,Condition,Domain,DomainMember,DramaFactory,Group>
org.bzdev.drama.Domain
org.bzdev.bikeshare.HubDomain
org.bzdev.bikeshare.ExtDomain
- All Implemented Interfaces:
Comparable<Domain>
,CondObserver<Condition,
,Domain> NamedObjectOps
Class providing a user domain.
All hubs (except for storage hubs) are configured to be members of
a user domain. A user domain's delay table gives the travel time by
bicycle between pairs of hubs.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CommDomainType
The communication domain type for all user domains. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
clone()
final boolean
delete()
final boolean
protected CommDomainType
Get this object's communication domain type.final String
getName()
protected Simulation
final boolean
boolean
Methods inherited from class org.bzdev.bikeshare.HubDomain
estimateDelay, estimateDelay, getDelay, getDelay, getDelayTable, getParentHubDomain, printConfiguration
Methods inherited from class org.bzdev.drama.Domain
getMsgForwardingInfo, setMessageForwardingInfo
Methods inherited from class org.bzdev.drama.generic.GenericDomain
actorSet, actorSetSize, addCommDomainTypeSet, addCondition, canDelete, communicationMatch, communicationMatch, communicationMatch, communicationMatch, communicationMatch, communicationMatch, communicationMatch, communicationMatchByDomain, communicationMatchByDomain, communicationMatchByDomain, communicationMatchByDomain, communicationMatchByDomainAncestor, communicationMatchByDomainAncestor, communicationMatchByDomainAncestor, communicationMatchByDomainAncestor, compareTo, conditionSet, configureAsCommunicationDomain, configureAsCommunicationDomain, configureAsCommunicationDomain, containsActor, containsDomainMember, containsGroup, createCommDomainInfo, domainMemberSet, getCommDomainType, getCommDomainTypeSet, getConditionChangeQMode, getCondObserverImpl, getDelay, getDelay, getDelay, getDelay, getMessageFilter, getMessageFilter, getMessageFilter, getMessageFilter, getMFI, getParent, getPriority, groupSet, groupSetSize, hasCondition, isCommunicationDomain, onChildAdd, onChildRemove, onDelete, onJoinedDomain, onJoinedDomain, onLeftDomain, onLeftDomain, removeCondition, setConditionChangeQMode, setMessageForwardingInfo
Methods inherited from class org.bzdev.drama.generic.GenericTaskObject
cancelDefaultCall, cancelDefaultTask, defaultCall, defaultTask, scheduleDefaultCall, scheduleDefaultTask, scheduleDefaultTask
Methods inherited from class org.bzdev.drama.generic.GenericSimObject
getSimulation, printState
Methods inherited from class org.bzdev.devqsim.SimObject
addSimulationListener, addTraceSet, bindCallable, bindCallable, bindCallable, bindCallable, bindRunnable, bindRunnable, bindRunnable, bindRunnable, callableObject, callableScript, callScriptFunction, callScriptMethod, clearTraceSets, evalScript, getEventListenerList, getScriptObject, getTraceSets, printConfiguration, printConfiguration, printConfiguration, printConfiguration, printConfiguration, printConfiguration, printState, printState, printState, printState, printState, printState, putScriptObject, removeSimulationListener, removeTraceSet, runnableObject, runnableScript, scheduleCall, scheduleCall, scheduleCall, scheduleCall, scheduleCallObject, scheduleScript, scheduleTask, scheduleTask, scheduleTask, scheduleTask, scheduleTaskObject, scheduleTaskScript, startImmediateTask, startImmediateTask, trace, trace, unscheduledTaskThread, unscheduledTaskThread, update, update, usesTraceSet
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.bzdev.obnaming.NamedObjectOps
delete, deletePending, getName, isDeleted, isInterned
-
Field Details
-
commDomainType
The communication domain type for all user domains.
-
-
Constructor Details
-
ExtDomain
Constructor.- Parameters:
sim
- the simulationname
- the name of this objectintern
- true if this object should be interned in the simulation's name table; false otherwise
-
-
Method Details
-
fetchCommDomainType
Description copied from class:HubDomain
Get this object's communication domain type. Concrete subclasses must override this method and ensure that the method is idempotent. The value returned must not be null.This method is provided because the subclasses
UsrDomain
andSysDomain
use different communication-domain types, while this class is expected to be a communication domain.- Specified by:
fetchCommDomainType
in classHubDomain
- Returns:
- this domain's communication-domain type
-
clone
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-
isInterned
public boolean isInterned()- Specified by:
isInterned
in interfaceNamedObjectOps
-
getObjectNamer
-
getName
- Specified by:
getName
in interfaceNamedObjectOps
-
delete
public final boolean delete()- Specified by:
delete
in interfaceNamedObjectOps
-
isDeleted
public final boolean isDeleted()- Specified by:
isDeleted
in interfaceNamedObjectOps
-
deletePending
public final boolean deletePending()- Specified by:
deletePending
in interfaceNamedObjectOps
-