Class RoundRobin.NameValue
- java.lang.Object
-
- edu.isi.pegasus.planner.selector.site.RoundRobin.NameValue
-
- Enclosing class:
- RoundRobin
class RoundRobin.NameValue extends java.lang.ObjectA 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.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()Returns a copy of this object.java.lang.StringgetName()Returns the key of this pair, i.e the left hand side of the mapping.intgetValue()Returns the value associated with this pair.voidincrement()Increments the int value by one.voidsetValue(int value)The set method to set the value.java.lang.StringtoString()Writes out the contents of the class to a String in form suitable for displaying.
-
-
-
Constructor Detail
-
NameValue
public NameValue()
The default constructor which initialises the class member variables.
-
NameValue
public NameValue(java.lang.String name, int value)Initialises the class member variables to the values passed in the arguments.- Parameters:
name- corresponds to the name in the NameValue pairvalue- corresponds to the value for the name in the NameValue pair
-
-
Method Detail
-
setValue
public void setValue(int value)
The set method to set the value.- Parameters:
value- int
-
getValue
public int getValue()
Returns the value associated with this pair.- Returns:
- int
-
getName
public java.lang.String getName()
Returns the key of this pair, i.e the left hand side of the mapping.- Returns:
- String
-
increment
public void increment()
Increments the int value by one.
-
clone
public java.lang.Object clone()
Returns a copy of this object.- Overrides:
clonein classjava.lang.Object- Returns:
- Object
-
toString
public java.lang.String toString()
Writes out the contents of the class to a String in form suitable for displaying.- Overrides:
toStringin classjava.lang.Object- Returns:
- String
-
-