Class ServiceSection
java.lang.Object
QueueNet.NodeSection
NodeSections.PipeSection
NodeSections.ServiceSection
- Direct Known Subclasses:
Cache, ClassSwitch, Delay, PollingServer, Server, ServiceTunnel, Timing
This abstract class implements a generic service section of a NetNode.
- Author:
- Francesco Radaelli
-
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 serviceSection.ServiceSection(boolean auto) Creates a new instance of serviceSection.ServiceSection(boolean auto, boolean nodeAuto) Creates a new instance of serviceSection. -
Method Summary
Modifier and TypeMethodDescriptionprotected RemoveTokensendBackward(int event, Object data, double delay) Sends a message to the input section.protected RemoveTokensendBackward(Job job, double delay) Sends a job to the input section.protected RemoveTokensendForward(int event, Object data, double delay) Sends a message to the output section.protected RemoveTokensendForward(Job job, double delay) Sends a job to the output section.Methods 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, process, redirect, removeMessage, send, send, send, send, send, send, sendAckAfterDrop, sendMe, sendMe, updateVisitPath
-
Constructor Details
-
ServiceSection
public ServiceSection()Creates a new instance of serviceSection. -
ServiceSection
public ServiceSection(boolean auto) Creates a new instance of serviceSection.- Parameters:
auto- Auto refresh of the jobsList attribute.
-
ServiceSection
public ServiceSection(boolean auto, boolean nodeAuto) Creates a new instance of serviceSection.- Parameters:
auto- Auto refresh of the jobsList attribute.nodeAuto- Auto refresh the jobsList attribute at node level.
-
-
Method Details
-
sendForward
Sends a job to the output section.- Parameters:
job- job to be sent.delay- Scheduling delay.- Returns:
- a token to remove sent event.
-
sendForward
Sends a message to the output section.- Parameters:
event- Message tag.data- the datadelay- Scheduling delay.- Returns:
- a token to remove sent event.
-
sendBackward
Sends a job to the input section.- Parameters:
job- job to be sent.delay- Scheduling delay.- Returns:
- a token to remove sent event.
-
sendBackward
Sends a message to the input section.- Parameters:
event- Message tag.data- the datadelay- Scheduling delay.- Returns:
- a token to remove sent event.
-