Package jsl.modeling.elements.entity
Class SQSeize
- java.lang.Object
-
- jsl.simulation.ModelElement
-
- jsl.simulation.SchedulingElement
-
- jsl.modeling.elements.entity.EntityReceiver
-
- jsl.modeling.elements.entity.SeizeResources
-
- jsl.modeling.elements.entity.SQSeize
-
- All Implemented Interfaces:
GetEntityReceiverIfc
,ObservableIfc
,GetNameIfc
,IdentityIfc
public class SQSeize extends SeizeResources
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jsl.modeling.elements.entity.SeizeResources
SeizeResources.AllocationListener, SeizeResources.AllocationSetListener, SeizeResources.RequirementOption
-
Nested classes/interfaces inherited from class jsl.simulation.ModelElement
ModelElement.EventBuilderIfc<T>, ModelElement.EventScheduler<T>, ModelElement.ModelElementComparator, ModelElement.RequestBuilder, ModelElement.RequestDurationIfc, ModelElement.RequestTimeIfc, ModelElement.RequestUsingIfc, ModelElement.TimedUpdateEventAction, ModelElement.TimeUnitIfc<T>, ModelElement.WarmUpEventAction
-
-
Field Summary
Fields Modifier and Type Field Description protected Queue<Entity>
myQueue
-
Fields inherited from class jsl.modeling.elements.entity.SeizeResources
myAllocationListener, myReqOption, myRequirements
-
Fields inherited from class jsl.modeling.elements.entity.EntityReceiver
myComposite, myDirectEntityReceiver, myNumInReceiver, mySender, mySendOption, myTimeInReceiver
-
Fields inherited from class jsl.simulation.ModelElement
AFTER_EXPERIMENT, AFTER_REPLICATION, BEFORE_EXPERIMENT, BEFORE_REPLICATION, CONDITIONAL_ACTION_REGISTRATION, DEFAULT_TIMED_EVENT_PRIORITY, INITIALIZED, MONTE_CARLO, myAfterExperimentOption, myAfterReplicationOption, myBeforeExperimentOption, myBeforeReplicationOption, myInitializationOption, myLengthOfWarmUp, myModelElements, myMonteCarloOption, myObservableComponent, myReplicationEndedOption, myTimedUpdateActionListener, myTimedUpdateEvent, myTimedUpdateInterval, myTimedUpdateOption, myTimedUpdatePriority, myWarmUpActionListener, myWarmUpEvent, myWarmUpIndicator, myWarmUpOption, myWarmUpPriority, NONE, REMOVED_FROM_MODEL, REPLICATION_ENDED, TIME_UNIT_DAY, TIME_UNIT_HOUR, TIME_UNIT_MILLISECOND, TIME_UNIT_MINUTE, TIME_UNIT_SECOND, TIME_UNIT_WEEK, TIMED_UPDATE, UPDATE, WARMUP
-
-
Constructor Summary
Constructors Constructor Description SQSeize(ModelElement parent)
SQSeize(ModelElement parent, java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
queueEntity(Entity entity)
Subclasses need to implement a mechanism to hold entities that are waiting for resourcesprotected void
removeEntity(Entity entity)
Subclasses need to implement a mechanism to remove the an entity (e.g.protected Entity
selectNextEntity()
Subclasses need to implement a mechanism to select the next entity from whatever mechanism is being used to hold the entities waiting for resources.-
Methods inherited from class jsl.modeling.elements.entity.SeizeResources
addSeizeRequirement, addSeizeRequirement, addSeizeRequirement, addSeizeRequirement, addSeizeRequirement, addSeizeRequirement, addSeizeRequirement, addSeizeRequirement, addSeizeRequirement, addSeizeRequirement, addSeizeRequirement, getSeizeRequirementOption, getSeizeRequirements, receive, seizeResources, setSeizeRequirementOption, startUsingResources
-
Methods inherited from class jsl.modeling.elements.entity.EntityReceiver
getComposite, getDirectEntityReceiver, getEntityReceiver, isPartOfComposite, sendEntity, setComposite, setDirectEntityReceiver, setDirectEntityReceiver, setEntitySender, setSendingOption, turnOnNumberInReceiverCollection, turnOnTimeInReceiverCollection
-
Methods inherited from class jsl.simulation.SchedulingElement
cancelEvent, rescheduleEvent, rescheduleEvent, rescheduleEvent, rescheduleEvent, scheduleEvent, scheduleEvent, scheduleEvent, scheduleEvent, scheduleEvent, scheduleEvent, scheduleEvent, scheduleEvent, scheduleEvent, scheduleEvent
-
Methods inherited from class jsl.simulation.ModelElement
addObserver, addObserverToModelElements, afterExperiment, afterExperiment_, afterReplication, afterReplication_, asString, beforeExperiment, beforeExperiment_, beforeReplication, beforeReplication_, buildEventGenerator, cancelTimedUpdateEvent, cancelWarmUpEvent, changeParentModelElement, checkForAfterExperiment, checkForAfterReplication, checkForBeforeExperiment, checkForBeforeReplication, checkForConditionalActionRegistration, checkForInitialize, checkForMonteCarlo, checkForRemoveFromModel, checkForReplicationEnded, checkForTimedUpdate, checkForUpdate, checkForWarmUp, checkObserverState, checkWarmUpOption, clearModelElementObservers, contains, countObservers, createEntity, createEntity, createQObject, day, deleteObserver, deleteObserverFromModelElements, deleteObservers, findModelElementWithWarmUpEvent, getAfterExperimentOption, getAfterReplicationOption, getAllCounters, getAllModelElements, getAllRandomElements, getAllResponseVariables, getAllVariables, getBeforeExperimentOption, getBeforeReplicationOption, getChildModelElementIterator, getCurrentReplicationNumber, getDefaultEntityType, getExecutive, getExperiment, getId, getInitializationOption, getInitializationOrderAsString, getLeftPreOrderTraversalCount, getLengthOfWarmUp, getModel, getModelElementCompartor, getModelElementsAsString, getModelElementsAsString, getModelElementsAsString, getMonteCarloOption, getName, getNumberOfModelElements, getObserverState, getParentModelElement, getPreviousObserverState, getReplicationEndedOption, getRightPreOrderTraversalCount, getSimulation, getSpatialModel, getStringLabel, getThisElementsCounters, getThisElementsModelElements, getThisElementsRandomVariables, getThisElementsResponseVariables, getThisElementsVariables, getTime, getTimedUpdateInterval, getTimedUpdateOption, getUpdateNotificationFlag, getVariable, getWarmUpEventTime, getWarmUpOption, hour, indent, initialize, initialize_, isTimedUpdateEventScheduled, isWarmedUp, isWarmUpEventScheduled, isWarmUpScheduled, millisecond, minute, montecarlo, montecarlo_, notifyAfterExperimentObservers, notifyAfterReplicationObservers, notifyBeforeExperimentObservers, notifyBeforeReplicationObservers, notifyConditionalActionRegistrationObservers, notifyInitializationObservers, notifyMonteCarloObservers, notifyObservers, notifyObservers, notifyRemovingFromModelObservers, notifyReplicationEndedObservers, notifyTimedUpdateObservers, notifyUpdateObservers, notifyWarmUpObservers, registerConditionalActions, registerConditionalActions_, removedFromModel, removeFromModel, replicationEnded, replicationEnded_, schedule, second, seize, setAfterExperimentOption, setAfterExperimentOptionForModelElements, setAfterReplicationOption, setAfterReplicationOptionForModelElements, setBeforeExperimentOption, setBeforeExperimentOptionForModelElements, setBeforeReplicationOption, setBeforeReplicationOptionForModelElements, setInitializationOption, setInitializationOptionForModelElements, setLengthOfWarmUp, setModel, setMonteCarloOption, setMonteCarloOptionForModelElements, setName, setObserverState, setParentModelElement, setReplicationEndedOption, setReplicationEndedOptionForModelElements, setSpatialModel, setStringLabel, setTimedUpdateInterval, setTimedUpdateOption, setTimedUpdateOptionForModelElements, setUpdateNotificationFlag, setWarmUpOption, setWarmUpOptionForModelElements, stopExecutive, stopExecutive, timedUpdate, timedUpdate_, toString, update, useControls, warmUp, warmUp_, week
-
-
-
-
Constructor Detail
-
SQSeize
public SQSeize(ModelElement parent)
-
SQSeize
public SQSeize(ModelElement parent, java.lang.String name)
-
-
Method Detail
-
queueEntity
protected void queueEntity(Entity entity)
Description copied from class:SeizeResources
Subclasses need to implement a mechanism to hold entities that are waiting for resources- Specified by:
queueEntity
in classSeizeResources
-
selectNextEntity
protected Entity selectNextEntity()
Description copied from class:SeizeResources
Subclasses need to implement a mechanism to select the next entity from whatever mechanism is being used to hold the entities waiting for resources. The entity should not be removed from the underlying holding mechanism. If null is returned, then no entities can be selected- Specified by:
selectNextEntity
in classSeizeResources
- Returns:
-
removeEntity
protected void removeEntity(Entity entity)
Description copied from class:SeizeResources
Subclasses need to implement a mechanism to remove the an entity (e.g. selectNextEntity()) from whatever mechanism being used to hold the entities waiting for resources.- Specified by:
removeEntity
in classSeizeResources
- Parameters:
entity
- the entity to be removed
-
-