communication
Class ReliabilitySetting

java.lang.Object
  extended by communication.ReliabilitySetting

public class ReliabilitySetting
extends java.lang.Object

Set the reliabily settings for a communication element.


Constructor Summary
ReliabilitySetting()
          Create a set of reliability values for a communication with default value (no error).
ReliabilitySetting(boolean reliable, FaultLevel packetLostLevel, FaultLevel transmissionDelayLowerBound, FaultLevel transmissionDelayUpperBound, FaultLevel crashLevel, boolean debugFault)
          Create a set of reliabily values for a communication element
 
Method Summary
 FaultLevel getCrashLevel()
           
 FaultLevel getPacketLostLevel()
           
 FaultLevel getTransmissionDelayLowerBound()
           
 FaultLevel getTransmissionDelayUpperBound()
           
 boolean isDebugFault()
           
 boolean isReliable()
           
 void setCrashLevel(FaultLevel crashLevel)
           
 void setDebugFault(boolean debugFault)
           
 void setPacketLostLevel(FaultLevel packetLostLevel)
           
 void setReliable(boolean reliable)
           
 void setTransmissionDelayLowerBound(FaultLevel transmissionDelayLowerBound)
           
 void setTransmissionDelayUpperBound(FaultLevel transmissionDelayUpperBound)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 communication
packetLostLevel - level of lost of packet send through the network
transmissionDelayLowerBound - level of the minimum delay for a message to join the receiver element
transmissionDelayUpperBound - level of the minimum delay for a message to join the receiver element
crashLevel - level of process crash
debugFault - 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).

Method Detail

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