Class BlockingRouter
java.lang.Object
QueueNet.NodeSection
NodeSections.PipeSection
NodeSections.OutputSection
NodeSections.BlockingRouter
This class implements a blocking router, i.e. a router which sends a job inside
a region with constraints (the "blocking region"). The destination node has been
already defined (the node each job has been redirected from), therefore no
routing strategy is required.
- Author:
- Stefano Omini, Bertoli Marco
-
Field Summary
Fields inherited from class NodeSection
EXCEPTION_MEASURE_DOES_NOT_EXIST, EXCEPTION_PROPERTY_NOT_AVAILABLE, INPUT, jobsList, logger, MSG_NOT_PROCESSED, MSG_PROCESSED, NO_ADDRESS, OUTPUT, PROPERTY_ID_ARRIVING_JOBS, PROPERTY_ID_AVERAGE_UTILIZATION, PROPERTY_ID_DEPARTING_JOBS, PROPERTY_ID_RESIDENCE_TIME, PROPERTY_ID_RESIDENT_JOBS, PROPERTY_ID_UTILIZATION, SERVICE -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of Router which limits the number of jobs entering in the region with constraints. -
Method Summary
Modifier and TypeMethodDescriptionprotected intprocess(NetMessage message) This method should be overridden to implement a specific NetMessage processor.Methods inherited from class OutputSection
sendBackward, sendBackwardMethods inherited from class NodeSection
analyze, analyze, analyzeFCR, analyzeFJ, analyzeJoin, analyzeTransition, getClassCompatibilities, getDoubleSectionProperty, getDoubleSectionProperty, getIntSectionProperty, getIntSectionProperty, getJobClasses, getJobInfoList, getObject, getObject, getOwnerNode, getParameter, getParameter, getSectionID, getServerTypes, isEnabled, isEnabled, isMine, isMyOwnerNode, nodeLinked, redirect, removeMessage, send, send, send, send, send, send, sendAckAfterDrop, sendMe, sendMe, updateVisitPath
-
Constructor Details
-
BlockingRouter
public BlockingRouter()Creates a new instance of Router which limits the number of jobs entering in the region with constraints. No routing strategy is required: the destination node is already known when the job arrives to the input station.
-
-
Method Details
-
process
Description copied from class:NodeSectionThis method should be overridden to implement a specific NetMessage processor.- Specified by:
processin classNodeSection- Parameters:
message- message to be processed.- Returns:
- message processing result.
- Throws:
NetException
-