public class UnitPhase extends Phase
Entity.PortAlias
Modifier and Type | Field and Description |
---|---|
protected double |
serviceTimePerUnit |
event, inputPort, occupancy, outputPort
portAliases, ports, simNode
CREATE_INSTANCE_METHOD_NAME
Constructor and Description |
---|
UnitPhase(double serviceTimePerUnit,
SimNode ownNode) |
Modifier and Type | Method and Description |
---|---|
static UnitPhase |
createInstance(SimNode ownNode,
Parameters pars)
as required by
ReflectionConstructable |
protected double |
getMessageProcessingDuration(Message msg) |
void |
setServiceTimePerUnit(double serviceTimePerUnit) |
forwardProcessedMessage, getInput, getOutput
addPort, aliasPort, aliasPort, connect, disconnect, getName, getNode, getPortByName, getPorts, isPortKnown, unaliasPort
public UnitPhase(double serviceTimePerUnit, SimNode ownNode)
public static UnitPhase createInstance(SimNode ownNode, Parameters pars)
ReflectionConstructable
public void setServiceTimePerUnit(double serviceTimePerUnit)
protected double getMessageProcessingDuration(Message msg)
getMessageProcessingDuration
in class Phase
msg
- the message which is currently processed