|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.unitn.ds.peersim.fds.FDParameters
public class FDParameters
Distributed Systems Course Project
Year: 2009/2010
University of Trento
FDParameters -.
http://peersim.sourceforge.net/| Field Summary | |
|---|---|
static java.lang.String |
FAILED
The FAILED. |
static java.lang.String |
P_WRONG_SUSPECTED
The P_ wron g_ suspected. |
static java.lang.String |
PROB
The PROB. |
static java.lang.String |
TIME_THRESHOLD
The THRESHOLD. |
| Constructor Summary | |
|---|---|
FDParameters()
Instantiates a new fD parameters. |
|
FDParameters(double probability,
int timeThreshold,
int nPWrongSuspected,
int failed)
Instantiates a new fD parameters. |
|
| Method Summary | |
|---|---|
int |
getFailed()
Gets the failed. |
int |
getNPossibleWrongSuspected()
Gets the n possible wrong suspected. |
double |
getProb()
Gets the prob. |
int |
getTimeThreshold()
Gets the time threshold. |
void |
setFailed(int failed)
Sets the failed. |
void |
setNPossibleWrongSuspected(int nPossibleWrongSuspected)
Sets the n possible wrong suspected. |
void |
setProb(double prob)
Sets the prob. |
void |
setTimeThreshold(int timeThreshold)
Sets the time threshold. |
java.lang.String |
toString()
To string. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static java.lang.String PROB
public static java.lang.String P_WRONG_SUSPECTED
public static java.lang.String TIME_THRESHOLD
public static java.lang.String FAILED
| Constructor Detail |
|---|
public FDParameters()
public FDParameters(double probability,
int timeThreshold,
int nPWrongSuspected,
int failed)
probability - the probabilitytimeThreshold - the time thresholdnPWrongSuspected - the n p wrong suspectedfailed - the failed| Method Detail |
|---|
public double getProb()
public void setProb(double prob)
prob - the new probpublic int getTimeThreshold()
public void setTimeThreshold(int timeThreshold)
timeThreshold - the timeThreshold to setpublic int getNPossibleWrongSuspected()
public void setNPossibleWrongSuspected(int nPossibleWrongSuspected)
nPossibleWrongSuspected - the new n possible wrong suspectedpublic int getFailed()
public void setFailed(int failed)
failed - the new failedpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||