|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmapping.data.MessageToServer
public class MessageToServer
This class is an configuration message sent to servers (Puller objects) to configure them.
| Field Summary | |
|---|---|
static int |
NON_ACTIVE_MODE
Representing the use of neither availability prediction methods. |
static int |
RECURSIVE_MODE
Representing method 2 in availability prediction. |
static int |
WEIGHTED_MODE
Representing method 1 in availability prediction. |
| Constructor Summary | |
|---|---|
MessageToServer()
|
|
MessageToServer(double percentage,
double forHowLong,
int availabilityMode,
double[] weights,
int n,
int c)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
|
double |
getAvailability()
|
int |
getAvailabilityMode()
|
double |
getC()
|
double |
getForHowLong()
|
int |
getN()
|
double[] |
getWeights()
|
void |
setAvailability(double availability)
|
void |
setAvailabilityMode(int availabilityMode)
|
void |
setC(double c)
|
void |
setForHowLong(double forHowLong)
|
void |
setN(int n)
|
void |
setWeights(double[] weights)
|
java.lang.String |
toString()
returns the message to be sent to servers. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int WEIGHTED_MODE
public static final int RECURSIVE_MODE
public static final int NON_ACTIVE_MODE
| Constructor Detail |
|---|
public MessageToServer()
public MessageToServer(double percentage,
double forHowLong,
int availabilityMode,
double[] weights,
int n,
int c)
| Method Detail |
|---|
public double getAvailability()
public void setAvailability(double availability)
public double getForHowLong()
public void setForHowLong(double forHowLong)
public int getAvailabilityMode()
public void setAvailabilityMode(int availabilityMode)
public double[] getWeights()
public void setWeights(double[] weights)
public int getN()
public void setN(int n)
public double getC()
public void setC(double c)
public java.lang.Object clone()
clone in class java.lang.Objectpublic 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 | |||||||||