org.walluck.oscar
Class RateClass

java.lang.Object
  extended byorg.walluck.oscar.RateClass

public class RateClass
extends java.lang.Object

Little is known about this mysterious creature.

Since:
1.0
Version:
1.0
Author:
David Walluck

Constructor Summary
RateClass()
          Creates a new rate class.
 
Method Summary
 int getAlert()
          Get the value of alert.
 short getClassID()
          Get the value of classID.
 int getClear()
          Get the value of clear.
 int getCurrent()
          Get the value of current.
 int getCurrentNow(long now)
          Get the current average rate as of now.
 int getDisconnect()
          Get the value of disconnect.
 long getLastSent()
          Get the value of lastSent.
 int getLimit()
          Get the value of limit.
 int getMax()
          Get the value of max.
 byte[] getUnknown()
          Get the value of unknown.
 int getWindowSize()
          Get the value of windowSize.
 boolean isLimited()
          Get the value of limited.
 void setAlert(int alert)
          Set the value of alert.
 void setClassID(short classID)
          Set the value of classID.
 void setClear(int clear)
          Set the value of clear.
 void setCurrent(int current)
          Set the value of current.
 void setDisconnect(int disconnect)
          Set the value of disconnect.
 void setLastSent(long lastSent)
          Set the value of lastSent.
 void setLimit(int limit)
          Set the value of limit.
 void setLimited(boolean limited)
          Set the value of limited.
 void setMax(int max)
          Set the value of max.
 void setUnknown(byte[] unknown)
          Set the value of unknown.
 void setWindowSize(int windowSize)
          Set the value of windowSize.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RateClass

public RateClass()
Creates a new rate class.

Method Detail

getClassID

public short getClassID()
Get the value of classID.

Returns:
value of classID.

setClassID

public void setClassID(short classID)
Set the value of classID.

Parameters:
classID - Value to assign to classID.

getWindowSize

public int getWindowSize()
Get the value of windowSize.

Returns:
value of windowSize.

setWindowSize

public void setWindowSize(int windowSize)
Set the value of windowSize.

Parameters:
windowSize - Value to assign to windowSize.

getClear

public int getClear()
Get the value of clear.

Returns:
value of clear.

setClear

public void setClear(int clear)
Set the value of clear.

Parameters:
clear - Value to assign to clear.

getAlert

public int getAlert()
Get the value of alert.

Returns:
value of alert.

setAlert

public void setAlert(int alert)
Set the value of alert.

Parameters:
alert - Value to assign to alert.

getLimit

public int getLimit()
Get the value of limit.

Returns:
value of limit.

setLimit

public void setLimit(int limit)
Set the value of limit.

Parameters:
limit - Value to assign to limit.

getDisconnect

public int getDisconnect()
Get the value of disconnect.

Returns:
value of disconnect.

setDisconnect

public void setDisconnect(int disconnect)
Set the value of disconnect.

Parameters:
disconnect - Value to assign to disconnect.

getCurrent

public int getCurrent()
Get the value of current.

Returns:
value of current.

setCurrent

public void setCurrent(int current)
Set the value of current.

Parameters:
current - Value to assign to current.

getMax

public int getMax()
Get the value of max.

Returns:
value of max.

setMax

public void setMax(int max)
Set the value of max.

Parameters:
max - Value to assign to max.

getUnknown

public byte[] getUnknown()
Get the value of unknown.

Returns:
value of unknown.

setUnknown

public void setUnknown(byte[] unknown)
Set the value of unknown.

Parameters:
unknown - Value to assign to unknown.

getCurrentNow

public int getCurrentNow(long now)
Get the current average rate as of now.

Parameters:
now - the number of milliseconds since the epoch
Returns:
the current average rate

getLastSent

public long getLastSent()
Get the value of lastSent.

Returns:
value of lastSent.

setLastSent

public void setLastSent(long lastSent)
Set the value of lastSent.

Parameters:
lastSent - Value to assign to lastSent.

isLimited

public boolean isLimited()
Get the value of limited.

Returns:
value of limited.

setLimited

public void setLimited(boolean limited)
Set the value of limited.

Parameters:
limited - Value to assign to limited.