public class ServerPhase extends Entity
Entity.PortAlias
Modifier and Type | Field and Description |
---|---|
protected int |
currentQueueLength |
protected ServerInputPort |
inputPort |
protected IntegralStatistic |
occupancy |
protected SynchronousOutputPort |
outputPort |
protected MultiPhasePrioServer |
owner |
protected PreemptionStrategy |
preemptionStrategy |
protected ServerPriorityQueue |
priorityQueue |
protected QueueingStrategy |
queueingStrategy |
protected IntegralStatistic |
queueLength |
protected ContinuousDistribution |
serviceTime |
protected SampleStatistic |
transferTime |
protected SampleStatistic |
waitingTime |
portAliases, ports, simNode
Constructor and Description |
---|
ServerPhase(SimNode ownNode,
MultiPhasePrioServer owner,
ContinuousDistribution serviceTime,
int priority,
PreemptionStrategy preemptionStrategy,
QueueingStrategy queueingStrategy) |
Modifier and Type | Method and Description |
---|---|
void |
append(ServerJob job) |
PreemptionStrategy |
getPreemptionStrategy() |
int |
getPriority() |
double |
getServiceTime() |
void |
putBack(ServerJob job) |
void |
updateOccupancy(double currentTime,
double value) |
void |
updateQueueLength(double currentTime,
int delta) |
void |
updateTransferTime(double sample) |
void |
updateWaitingTime(double sample) |
addPort, aliasPort, aliasPort, connect, disconnect, getName, getNode, getPortByName, getPorts, isPortKnown, unaliasPort
protected final MultiPhasePrioServer owner
protected final ServerInputPort inputPort
protected final SynchronousOutputPort outputPort
protected final ContinuousDistribution serviceTime
protected final PreemptionStrategy preemptionStrategy
protected final QueueingStrategy queueingStrategy
protected final ServerPriorityQueue priorityQueue
protected final IntegralStatistic occupancy
protected final IntegralStatistic queueLength
protected final SampleStatistic transferTime
protected final SampleStatistic waitingTime
protected int currentQueueLength
public ServerPhase(SimNode ownNode, MultiPhasePrioServer owner, ContinuousDistribution serviceTime, int priority, PreemptionStrategy preemptionStrategy, QueueingStrategy queueingStrategy)
public int getPriority()
public PreemptionStrategy getPreemptionStrategy()
public double getServiceTime()
public void append(ServerJob job)
public void putBack(ServerJob job)
public void updateOccupancy(double currentTime, double value)
public void updateQueueLength(double currentTime, int delta)
public void updateTransferTime(double sample)
public void updateWaitingTime(double sample)