GridSim 5.0 beta

gridsim.net
Interface NetIO

All Known Implementing Classes:
FlowInput, FlowOutput, FnbInput, FnbOutput, Input, Output

public interface NetIO

This class contains the structure for Input and Output entities.

Since:
GridSim Toolkit 4.2
Author:
Anthony Sulistio

Field Summary
static int BITS
          A constant that denotes 1 byte in bits
 
Method Summary
 void addLink(Link link)
          Sets this entity's link.
 double getBaudRate()
          Gets the baud rate
 boolean setBackgroundTraffic(TrafficGenerator gen)
          Sets the background traffic generator for Output entity only.
 boolean setBackgroundTraffic(TrafficGenerator gen, Collection userName)
          Sets the background traffic generator for Output entity only.
 

Field Detail

BITS

static final int BITS
A constant that denotes 1 byte in bits

See Also:
Constant Field Values
Method Detail

addLink

void addLink(Link link)
Sets this entity's link. This should be used only if the network extensions are being used.

Parameters:
link - the link to which this entity should send/receive data

getBaudRate

double getBaudRate()
Gets the baud rate

Returns:
the baud rate

setBackgroundTraffic

boolean setBackgroundTraffic(TrafficGenerator gen)
Sets the background traffic generator for Output entity only.

When simulation starts, this entity will automatically sends junk packets to resource entities.

Parameters:
gen - a background traffic generator
Returns:
true if successful, false otherwise

setBackgroundTraffic

boolean setBackgroundTraffic(TrafficGenerator gen,
                             Collection userName)
Sets the background traffic generator for Output entity only.

When simulation starts, this entity will automatically sends junk packets to resource entities and other entities.
NOTE: Sending background traffic to itself is not supported.

Parameters:
gen - a background traffic generator
userName - a collection of user entity name (in String object).
Returns:
true if successful, false otherwise
Pre Condition:
gen != null, userName != null
Post Condition:
$none

GridSim 5.0 beta

The University of Melbourne, Australia, 2009