|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.isi.pegasus.planner.selector.site.RoundRobin.NameValue
class RoundRobin.NameValue
A inner name value class that associates a string with an int value. This is used to populate the round robin list that is used by this scheduler.
| Field Summary | |
|---|---|
private String |
name
Stores the name of the pair (the left handside of the mapping). |
private int |
value
Stores the corresponding value to the name in the pair. |
| Constructor Summary | |
|---|---|
RoundRobin.NameValue()
The default constructor which initialises the class member variables. |
|
RoundRobin.NameValue(String name,
int value)
Initialises the class member variables to the values passed in the arguments. |
|
| Method Summary | |
|---|---|
Object |
clone()
Returns a copy of this object. |
String |
getName()
Returns the key of this pair, i.e the left hand side of the mapping. |
int |
getValue()
Returns the value associated with this pair. |
void |
increment()
Increments the int value by one. |
void |
setValue(int value)
The set method to set the value. |
String |
toString()
Writes out the contents of the class to a String in form suitable for displaying. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private String name
private int value
| Constructor Detail |
|---|
public RoundRobin.NameValue()
public RoundRobin.NameValue(String name,
int value)
name - corresponds to the name in the NameValue pairvalue - corresponds to the value for the name in the NameValue pair| Method Detail |
|---|
public void setValue(int value)
value - intpublic int getValue()
public String getName()
public void increment()
public Object clone()
clone in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||