|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.vmguys.vmtools.utils.CostOps
Contains a series of operations and a cost.
| Constructor Summary | |
CostOps()
Constructs a CostOps with zero cost and no operations. |
|
CostOps(AbstractOperation op)
Constructs a CostOps with the specified operation. |
|
CostOps(int cost)
Constructs a CostOps with the specified cost and no operations. |
|
CostOps(java.util.List ops)
Constructs a CotsOps with a list of operations. |
|
| Method Summary | |
void |
add(AbstractOperation op)
Adds another operation to the list. |
void |
add(CostOps other)
Adds another CostOps to this one. |
void |
add(int n)
Adds more cost to the operation. |
CostOps |
combine(CostOps other)
Generates a new CostOps object which is the combination of this one and the one specified as a parameter. |
int |
getCost()
Getter for property cost. |
java.util.List |
getOps()
Getter for property ops. |
void |
setCost(int cost)
Setter for property cost. |
void |
sortOperations()
Sorts the operation list according to the number of the node the operation is being performed on. |
java.lang.String |
toString()
Converts this CostOps to a String for display. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CostOps()
public CostOps(int cost)
public CostOps(AbstractOperation op)
public CostOps(java.util.List ops)
AbstractOperation| Method Detail |
public void add(CostOps other)
public void add(AbstractOperation op)
public void add(int n)
public CostOps combine(CostOps other)
public int getCost()
public void setCost(int cost)
cost - New value of property cost.public java.util.List getOps()
public java.lang.String toString()
toString in class java.lang.Objectpublic void sortOperations()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||