|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdip.order.result.Result
dip.order.result.OrderResult
A message sent to a specific Power that refers to a specific order. The message is classified according to ResultType (see for details).
More than one OrderResult may exist for a single order.
Nested Class Summary | |
static class |
OrderResult.ResultType
Type-Safe enumerated categories of OrderResults. |
Field Summary | |
protected Orderable |
order
The Order to which this Result refers |
protected OrderResult.ResultType |
resultType
The ResultType |
Fields inherited from class dip.order.result.Result |
message, power |
Constructor Summary | |
protected |
OrderResult()
no-arg constructor for subclasses |
|
OrderResult(Orderable order,
OrderResult.ResultType type,
java.lang.String message)
Create an OrderResult with the given Order, ResultType, and Message. |
|
OrderResult(Orderable order,
java.lang.String message)
Create an OrderResult with the given Order and Message. |
Method Summary | |
int |
compareTo(java.lang.Object o)
Compare in the following order: Power (null first) Orderable source province [null first] ResultType [never null] message [never null, but may be empty] If power is null, it will be first in ascending order. |
Orderable |
getOrder()
Get the Order. |
OrderResult.ResultType |
getResultType()
Get the ResultType. |
java.lang.String |
toString()
For debugging |
Methods inherited from class dip.order.result.Result |
getMessage, getMessage, getPower |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected OrderResult.ResultType resultType
protected Orderable order
Constructor Detail |
protected OrderResult()
public OrderResult(Orderable order, java.lang.String message)
public OrderResult(Orderable order, OrderResult.ResultType type, java.lang.String message)
Method Detail |
public OrderResult.ResultType getResultType()
public Orderable getOrder()
public java.lang.String toString()
toString
in class Result
public int compareTo(java.lang.Object o)
If power is null, it will be first in ascending order. If message may be empty, but never is null.
compareTo
in interface java.lang.Comparable
compareTo
in class Result
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |