Class QueueNetwork
java.lang.Object
QueueNet.QueueNetwork
This class implements a queue network.
- Author:
- Francesco Radaelli, Bertoli Marco (Added support for global measures)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intBehaviour ID: Aborts the simulation when a measure has been obtained.static final intBehaviour ID: Continues the simulation when a measure has been obtained.static final intBehaviour ID: Continues and waits other measures when a measure has been obtained.static final intBehaviour ID: Continues and waits other measures when a measure has been obtained.static final intBehaviour ID: Stops the simulation when a measure has been obtained.static final intstatic final intMeasure ID: queue lengthstatic final intstatic final intMeasure ID: residence timestatic final intMeasure ID: residence timestatic final intState ID: The network has been aborted.static final intState ID: The network is in final state.static final intState ID: Initial state, the network is ready to be started.static final intState ID: The network is running.static final intState ID: The network has been stopped. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAborts all the measures linked to the queue networkvoidaddJobClass(JobClass jobClass) Adds a new job class to the network.voidaddMeasure(Measure measure) Adds a new measure to the network.voidAdds a generic node to the network.voidaddReferenceNode(NetNode node) Adds a node to the network and forces it to be a reference node.intGets the network behaviour (see behaviour constants).getJobClass(String name) Gets the JobClass with the specified name.Gets the list of the queue network job classes.Returns Global jobInfoList associated with this queue network.Gets the measuresgetName()Gets network nameGets the NetNode with the specified name.getNodes()Gets the list of the queue network nodes.intGets the list of the queue network reference nodes.intgetState()Gets the network state (see state constants).booleanvoidsetBehaviuor(int behaviour) Sets the network behaviour (see behaviour constants).voidsetNetSystem(NetSystem netSystem) voidsetParametricStep(int parametricStep) voidsetTerminalSimulation(boolean isTerminalSimulation)
-
Field Details
-
REFERENCE_NODE
public static final int REFERENCE_NODE- See Also:
-
NODE
public static final int NODE- See Also:
-
BEHAVIOUR_ABORT
public static final int BEHAVIOUR_ABORTBehaviour ID: Aborts the simulation when a measure has been obtained.- See Also:
-
BEHAVIOUR_STOP
public static final int BEHAVIOUR_STOPBehaviour ID: Stops the simulation when a measure has been obtained.- See Also:
-
BEHAVIOUR_CONTINUE
public static final int BEHAVIOUR_CONTINUEBehaviour ID: Continues the simulation when a measure has been obtained.- See Also:
-
BEHAVIOUR_OBTAIN_ALL_MEASURES_THEN_ABORT
public static final int BEHAVIOUR_OBTAIN_ALL_MEASURES_THEN_ABORTBehaviour ID: Continues and waits other measures when a measure has been obtained.- See Also:
-
BEHAVIOUR_OBTAIN_ALL_MEASURES_THEN_STOP
public static final int BEHAVIOUR_OBTAIN_ALL_MEASURES_THEN_STOPBehaviour ID: Continues and waits other measures when a measure has been obtained.- See Also:
-
STATE_READY
public static final int STATE_READYState ID: Initial state, the network is ready to be started.- See Also:
-
STATE_RUNNING
public static final int STATE_RUNNINGState ID: The network is running.- See Also:
-
STATE_STOPPED
public static final int STATE_STOPPEDState ID: The network has been stopped.- See Also:
-
STATE_ABORTED
public static final int STATE_ABORTEDState ID: The network has been aborted.- See Also:
-
STATE_FINAL
public static final int STATE_FINALState ID: The network is in final state.- See Also:
-
QUEUE_LENGTH
public static final int QUEUE_LENGTHMeasure ID: queue length- See Also:
-
RESIDENCE_TIME
public static final int RESIDENCE_TIMEMeasure ID: residence time- See Also:
-
SERVICE_TIME
public static final int SERVICE_TIMEMeasure ID: residence time- See Also:
-
-
Constructor Details
-
QueueNetwork
Creates a new instance of QueueNetwork.
-
-
Method Details
-
addNode
Adds a generic node to the network. If the node has no inputs the node is set as reference node.- Parameters:
node- node to be added.
-
addReferenceNode
Adds a node to the network and forces it to be a reference node.- Parameters:
node- node to be added.
-
addJobClass
Adds a new job class to the network.- Parameters:
jobClass- Job class to be added.
-
getNodes
-
getNode
-
getJobClass
-
getReferenceNodes
Gets the list of the queue network reference nodes.- Returns:
- Queue network reference nodes.
-
getJobClasses
Gets the list of the queue network job classes.- Returns:
- Queue network job classes.
-
getName
-
addMeasure
Adds a new measure to the network.- Parameters:
measure- Reference to the measure to be added.
-
getJobInfoList
Returns Global jobInfoList associated with this queue network. This is used to calculate global measures- Returns:
- Global JobInfoList of this network
-
getMeasures
Gets the measures -
getBehaviour
public int getBehaviour()Gets the network behaviour (see behaviour constants). -
setBehaviuor
public void setBehaviuor(int behaviour) Sets the network behaviour (see behaviour constants). -
getState
public int getState()Gets the network state (see state constants). -
abortAllMeasures
public void abortAllMeasures()Aborts all the measures linked to the queue network -
isTerminalSimulation
public boolean isTerminalSimulation() -
setTerminalSimulation
public void setTerminalSimulation(boolean isTerminalSimulation) -
getParametricStep
public int getParametricStep() -
setParametricStep
public void setParametricStep(int parametricStep) -
getNetSystem
-
setNetSystem
-