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
-
down()
- Make the link go down.
-
perturb()
- Perturb the state of the link.
-
reset()
- Reset the channel, i.e.
-
set_delay(int)
- Set the average delay of the channel.
-
set_delay_minus(int)
- Set lower bound for delay.
-
set_delay_plus(int)
- Set upper bound for delay.
-
set_duplicate_rate(float)
- Set the duplication rate.
-
set_loss_rate(float)
- Set the packet loss rate of the channel.
-
set_reordering_rate(float)
- Set reordering rate.
-
up()
- Make the link go up again.
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.
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.
reset
public abstract void reset()
- Reset the channel, i.e. clear all internal buffers and put it into an
operational initial state.
perturb
public abstract void perturb()
- Perturb the state of the link. The link should be put into a random state.
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.
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.
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.
set_delay
public abstract void set_delay(int delay)
- Set the average delay of the channel.
- Parameters:
- delay - Average delay in simulation time units.
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.
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