|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--haifa.shopsim.Operation
This little class holds and identifies an operation in a job shop (route, step).
Field Summary | |
private int |
k
The step number. |
private int |
r
The route number. |
private int |
ROUTE_ADD
Used by the hash code generator. |
private int |
STEP_ADD
Used by the hash code generator. |
Constructor Summary | |
Operation(int r_,
int k_)
Constructs an operation on route r, and step k |
Method Summary | |
boolean |
equals(java.lang.Object obj)
Returns true if the operation equals obj |
int |
getRoute()
Returns the route that identifies the operation. |
int |
getStep()
Returns the step that identifies the operation. |
int |
hashCode()
Returns a hash code based on the operation. |
java.lang.String |
toString()
Returns a string of the operation. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private final int ROUTE_ADD
private final int STEP_ADD
private int r
private int k
Constructor Detail |
public Operation(int r_, int k_)
Method Detail |
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public final int hashCode()
hashCode
in class java.lang.Object
public final int getRoute()
public final int getStep()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |