Class InputSection
java.lang.Object
QueueNet.NodeSection
NodeSections.PipeSection
NodeSections.InputSection
- Direct Known Subclasses:
BlockingQueue, Enabling, JobSink, Join, Queue, RandomSource, Semaphore, Storage, Terminal
This abstract class implements a generic input 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 inputSection.InputSection(boolean auto) Creates a new instance of inputSection.InputSection(boolean auto, boolean nodeAuto) Creates a new instance of inputSection -
Method Summary
Modifier and TypeMethodDescriptionprotected RemoveTokensendForward(int event, Object data, double delay) Sends a message to the service section.protected RemoveTokensendForward(Job job, double delay) Sends a job to the service 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
-
InputSection
public InputSection()Creates a new instance of inputSection. -
InputSection
public InputSection(boolean auto) Creates a new instance of inputSection.- Parameters:
auto- Auto refresh of the jobsList attribute.
-
InputSection
public InputSection(boolean auto, boolean nodeAuto) Creates a new instance of inputSection- 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 service section.- Parameters:
job- Job to be sent.delay- Scheduling delay.- Returns:
- a token to remove sent event.
-
sendForward
Sends a message to the service section.- Parameters:
event- Message tag.data- Data to be sent.delay- Scheduling delay.- Returns:
- a token to remove sent event.
-