communication
Class ReliabilitySetting
java.lang.Object
communication.ReliabilitySetting
public class ReliabilitySetting
- extends java.lang.Object
Set the reliabily settings for a communication element.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReliabilitySetting
public ReliabilitySetting(boolean reliable,
FaultLevel packetLostLevel,
FaultLevel transmissionDelayLowerBound,
FaultLevel transmissionDelayUpperBound,
FaultLevel crashLevel,
boolean debugFault)
- Create a set of reliabily values for a communication element
- Parameters:
reliable
- reliabily (information on packet losts when sending messages) of the communicationpacketLostLevel
- level of lost of packet send through the networktransmissionDelayLowerBound
- level of the minimum delay for a message to join the receiver elementtransmissionDelayUpperBound
- level of the minimum delay for a message to join the receiver elementcrashLevel
- level of process crashdebugFault
- precise if debug information, concerning message lost and transmission delays,
must be printed on standard output
ReliabilitySetting
public ReliabilitySetting()
- Create a set of reliability values for a communication with default value (no error).
isDebugFault
public boolean isDebugFault()
getPacketLostLevel
public FaultLevel getPacketLostLevel()
isReliable
public boolean isReliable()
getTransmissionDelayLowerBound
public FaultLevel getTransmissionDelayLowerBound()
getTransmissionDelayUpperBound
public FaultLevel getTransmissionDelayUpperBound()
getCrashLevel
public FaultLevel getCrashLevel()
setReliable
public void setReliable(boolean reliable)
- Parameters:
reliable
- the reliable to set
setPacketLostLevel
public void setPacketLostLevel(FaultLevel packetLostLevel)
- Parameters:
packetLostLevel
- the packetLostLevel to set
setTransmissionDelayLowerBound
public void setTransmissionDelayLowerBound(FaultLevel transmissionDelayLowerBound)
- Parameters:
transmissionDelayLowerBound
- the transmissionDelayLowerBound to set
setTransmissionDelayUpperBound
public void setTransmissionDelayUpperBound(FaultLevel transmissionDelayUpperBound)
- Parameters:
transmissionDelayUpperBound
- the transmissionDelayUpperBound to set
setCrashLevel
public void setCrashLevel(FaultLevel crashLevel)
- Parameters:
crashLevel
- the crashLevel to set
setDebugFault
public void setDebugFault(boolean debugFault)
- Parameters:
debugFault
- the debugFault to set