All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface simdistalg.Sim_faulty_channel

public interface interface Sim_faulty_channel
Interface of a faulty message passing channel. This interface specifies the faults that may occur and be called on a channel node in the simdistalg package.

See Also:
Sim_pos_entity, Sim_node, Sim_fault_dispatcher, Simdistalg_applet, Sim_entity

Method Index

 o down()
Make the link go down.
 o perturb()
Perturb the state of the link.
 o reset()
Reset the channel, i.e.
 o set_delay(int)
Set the average delay of the channel.
 o set_delay_minus(int)
Set lower bound for delay.
 o set_delay_plus(int)
Set upper bound for delay.
 o set_duplicate_rate(float)
Set the duplication rate.
 o set_loss_rate(float)
Set the packet loss rate of the channel.
 o set_reordering_rate(float)
Set reordering rate.
 o up()
Make the link go up again.

Methods

 o down
 public abstract void down()
Make the link go down. The link still receives and buffers messages, but doesn't relay them to the destination.

 o up
 public abstract void up()
Make the link go up again. The link will start normal operation i.e. will start sending all buffered messages (after going down for example). Local variables are not reset.

 o reset
 public abstract void reset()
Reset the channel, i.e. clear all internal buffers and put it into an operational initial state.

 o perturb
 public abstract void perturb()
Perturb the state of the link. The link should be put into a random state.

 o set_loss_rate
 public abstract void set_loss_rate(float rate)
Set the packet loss rate of the channel.

Parameters:
code - a value between 0 and 1 that specifies the percentage of packets that are lost in transit by the channel.
 o set_duplicate_rate
 public abstract void set_duplicate_rate(float rate)
Set the duplication rate.

Parameters:
rate - a value between 0 and 1 and specifies the rate of duplicated messages in percent.
 o set_reordering_rate
 public abstract void set_reordering_rate(float rate)
Set reordering rate.

Parameters:
rate - a value between 0 and 1 and specifies the rate by which messages are reordered in percent. For example, a rate of 0.2 will result in reordering faults in 20 percent of the time where more than one message is in the channel.
 o set_delay
 public abstract void set_delay(int delay)
Set the average delay of the channel.

Parameters:
delay - Average delay in simulation time units.
 o set_delay_plus
 public abstract void set_delay_plus(int plus)
Set upper bound for delay.

Parameters:
plus - Number of simulation time units that a message can take longer.
 o set_delay_minus
 public abstract void set_delay_minus(int minus)
Set lower bound for delay.

Parameters:
minus - Number of simulation time units that a message can be faster.

All Packages  Class Hierarchy  This Package  Previous  Next  Index