public class UserPreferences
extends java.lang.Object
implements java.lang.Cloneable
| Constructor and Description |
|---|
UserPreferences(int time,
int maxLogs,
int inRate,
int outRate)
Builds an object with the given values
|
| Modifier and Type | Method and Description |
|---|---|
UserPreferences |
clone()
Return a copy of this object
|
int |
getDynDamping() |
int |
getDynThreshold() |
int |
getDynTime() |
int |
getMaxInputRate() |
int |
getMaxNumOfLogs() |
int |
getMaxOutputRate() |
long |
getMillisecondsTimeFrame() |
int |
getMinuteTimeFrame() |
int |
getTimeFrame() |
void |
setDynDamping(int dynDamping) |
void |
setDynThreshold(int dynThreshold) |
void |
setDynTime(int dynTime) |
void |
setMaxInputRate(int maxInputRate) |
void |
setMaxLogs(int maxLogs)
Set the max number of logs
|
void |
setMaxNumOfLogs(int maxNumOfLogs) |
void |
setMaxOutputRate(int maxOutputRate) |
void |
setTimeFrame(int time)
Set the time frame to the given value
|
public UserPreferences(int time,
int maxLogs,
int inRate,
int outRate)
time - The time frame (in minutes)maxLogs - The max number of logspublic void setTimeFrame(int time)
time - The new time frame (in minutes)public void setMaxLogs(int maxLogs)
throws java.lang.IllegalArgumentException
maxLogs - The max number of logsjava.lang.IllegalArgumentExceptionpublic int getMaxNumOfLogs()
public int getMinuteTimeFrame()
public long getMillisecondsTimeFrame()
public int getMaxInputRate()
public void setMaxInputRate(int maxInputRate)
public int getMaxOutputRate()
public void setMaxOutputRate(int maxOutputRate)
public UserPreferences clone() throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic int getDynThreshold()
public void setDynThreshold(int dynThreshold)
public int getDynDamping()
public void setDynDamping(int dynDamping)
public int getDynTime()
public void setDynTime(int dynTime)
public int getTimeFrame()
public void setMaxNumOfLogs(int maxNumOfLogs)