java.lang.Object
org.bzdev.devqsim.SimObject
org.bzdev.drama.generic.GenericSimObject<S,A,C,D,DM,F,G>
org.bzdev.drama.generic.GenericMsgFrwdngInfo<DramaSimulation,Actor,Condition,Domain,DomainMember,DramaFactory,Group>
org.bzdev.drama.MsgForwardingInfo
org.bzdev.bikeshare.DelayTable
- All Implemented Interfaces:
NamedObjectOps
- Direct Known Subclasses:
SchedDelayTable
,StdDelayTable
Base class for delay tables.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
DelayTable
(DramaSimulation sim, String name, boolean intern) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addToDomain
(HubDomain domain) Add this table to a hub domain.boolean
protected Object
clone()
final boolean
delete()
final boolean
abstract double
estimateDelay
(double startingTime, Hub src, Hub dest, int n) Estimate the time it takes to travel between two hubs.double
estimateDelay
(Hub src, Hub dest, int n) Estimate the time it takes to travel between two hubs, starting at the current simulation time.abstract double
Get the time it takes to travel between two hubs.double
Get the time it takes to travel between two hubs, starting at the current simulation time.final String
getName()
protected Simulation
final boolean
boolean
abstract double
latestStartingTime
(double time, Hub src, Hub dest) Get the latest starting time, given a minimum starting time, for a trip between two hubs with the same arrival time.double
latestStartingTime
(Hub src, Hub dest) Get the latest starting time at or after the current simulation time for a trip between two hubs assuming the same arrival time.protected long
localDelay
(Domain domain, Actor src, Object msg, Actor dest) Methods inherited from class org.bzdev.drama.generic.GenericMsgFrwdngInfo
localDelay, localDelay, localDelay, localDelay, localDelay, localDelay, localDelay, localDelay, localMessageFilter, localMessageFilter, localMessageFilter, localMessageFilter, localMessageFilter, localMessageFilter, localMessageFilter, localMessageFilter, localMessageFilter
Methods inherited from class org.bzdev.drama.generic.GenericSimObject
getSimulation, printConfiguration, 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, onDelete, 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
canDelete, delete, deletePending, getName, isDeleted, isInterned
-
Constructor Details
-
DelayTable
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
-
localDelay
- Overrides:
localDelay
in classGenericMsgFrwdngInfo<DramaSimulation,
Actor, Condition, Domain, DomainMember, DramaFactory, Group>
-
clone
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-
isInterned
public boolean isInterned()- Specified by:
isInterned
in interfaceNamedObjectOps
-
getObjectNamer
-
getName
- Specified by:
getName
in interfaceNamedObjectOps
-
canDelete
public boolean canDelete()- Specified by:
canDelete
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