flowsim.slatr
Class SLATP_Ask

java.lang.Object
  |
  +--flowsim.slatr.SLATP_Message
        |
        +--flowsim.slatr.SLATP_Ask

public class SLATP_Ask
extends flowsim.slatr.SLATP_Message

Ask message of the SLA Trading Protocol (SLATP).

See Also:
SLATP_Bid

Field Summary
 int bw
           
 Node dest
           
 long expiration
           
 int max_delay
           
 
Method Summary
 void arrived()
           
static void send(Simulator s, SLABuyer from, SLASeller to, Node dest, int bw, int max_delay, long expiration)
          Send a SLATP_Ask message to a SLAT-peer which can be local or on another node.
 int size()
           
 
Methods inherited from class flowsim.slatr.SLATP_Message
arrived, get_from, get_to
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dest

public final Node dest

bw

public final int bw

max_delay

public final int max_delay

expiration

public final long expiration
Method Detail

send

public static void send(Simulator s,
                        SLABuyer from,
                        SLASeller to,
                        Node dest,
                        int bw,
                        int max_delay,
                        long expiration)
Send a SLATP_Ask message to a SLAT-peer which can be local or on another node. If the destination is on another node, a PacketImpl flow is created and started.
Parameters:
s - simulator object
from - buyer
to - seller
dest - wanted dest point
bw - wanted (ideal) bandwidth
max_delay - wanted (ideal) maximal delay
expiration - wanted (ideal) expiration
See Also:
PacketImpl

size

public int size()

arrived

public void arrived()