flowsim.slatr
Class SLA

java.lang.Object
  |
  +--flowsim.slatr.SLA

public final class SLA
extends java.lang.Object
implements java.lang.Cloneable


Field Summary
 boolean accepted
           
 long bid_expiration
           
 int bw
           
 long cost
           
 Node dest
           
 int ds
           
 long expiration
           
 EventQueueElement expiration_event
           
 long gain
           
 int iface
           
 int max_delay
           
 java.lang.Object misc
           
 int peer
           
 int rbw
           
 long time
           
 float utility
           
 
Constructor Summary
SLA(Node dest, int ds, int bw, int max_delay, long cost, long time, long expiration)
           
SLA(Node dest, int ds, int bw, int max_delay, long cost, long time, long expiration, int peer)
           
 
Method Summary
 java.lang.Object clone()
           
 float cost_time()
           
 float cost_volume()
           
 float cost_volume(long now)
          cost per volume
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 java.lang.String toDebugString()
           
 java.lang.String toNormalString()
           
 java.lang.String toString()
           
 long volume()
          volume in bits
 long volume(long now)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

dest

public final Node dest

ds

public int ds

bw

public final int bw

max_delay

public final int max_delay

time

public long time

expiration

public long expiration

cost

public long cost

peer

public int peer

rbw

public int rbw

iface

public int iface

bid_expiration

public long bid_expiration

accepted

public boolean accepted

expiration_event

public EventQueueElement expiration_event

utility

public float utility

gain

public long gain

misc

public java.lang.Object misc
Constructor Detail

SLA

public SLA(Node dest,
           int ds,
           int bw,
           int max_delay,
           long cost,
           long time,
           long expiration)

SLA

public SLA(Node dest,
           int ds,
           int bw,
           int max_delay,
           long cost,
           long time,
           long expiration,
           int peer)
Method Detail

volume

public long volume()
volume in bits

volume

public long volume(long now)

cost_volume

public float cost_volume(long now)
cost per volume

cost_volume

public float cost_volume()

cost_time

public float cost_time()

toDebugString

public java.lang.String toDebugString()

toNormalString

public java.lang.String toNormalString()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Overrides:
clone in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object