public class RateClass extends Object
Constructor and Description |
---|
RateClass()
Creates a new rate class.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public short getClassID()
public void setClassID(short classID)
classID
- Value to assign to classID.public int getWindowSize()
public void setWindowSize(int windowSize)
windowSize
- Value to assign to windowSize.public int getClear()
public void setClear(int clear)
clear
- Value to assign to clear.public int getAlert()
public void setAlert(int alert)
alert
- Value to assign to alert.public int getLimit()
public void setLimit(int limit)
limit
- Value to assign to limit.public int getDisconnect()
public void setDisconnect(int disconnect)
disconnect
- Value to assign to disconnect.public int getCurrent()
public void setCurrent(int current)
current
- Value to assign to current.public int getMax()
public void setMax(int max)
max
- Value to assign to max.public byte[] getUnknown()
public void setUnknown(byte[] unknown)
unknown
- Value to assign to unknown.public int getCurrentNow(long now)
now
- the number of milliseconds since the epochpublic long getLastSent()
public void setLastSent(long lastSent)
lastSent
- Value to assign to lastSent.public boolean isLimited()
public void setLimited(boolean limited)
limited
- Value to assign to limited.