|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdip.order.NJudgeOrderParser.NJudgeOrder
Class that holds an Order and Text Results
Constructor Summary | |
NJudgeOrderParser.NJudgeOrder(Orderable order,
java.util.List results,
boolean isAdjustmentPhase)
Create an NJudgeOrder, which is an Orderable with a dip.order.Result result(s). |
|
NJudgeOrderParser.NJudgeOrder(Orderable order,
Result aResult,
boolean isAdjustmentPhase)
Create an NJudgeOrder |
|
NJudgeOrderParser.NJudgeOrder(Power power,
int unusedPendingBuilds,
int unusedPendingWaives,
Result result)
Create an Adjustment-phase NJudgeOrder for unused pending Builds, or pending Waives, but not both. |
|
NJudgeOrderParser.NJudgeOrder(Power power,
Result result)
Create an Adjustment-phase NJudgeOrder for a Waived Build. |
Method Summary | |
Power |
getAdjustmentPower()
Returns the power for special adjustment orders, which are obtained via the methods: getUnusedPendingBuilds()
getUnusedPendingWaives()
isWaivedBuild()
This will throw an IllegalStateException() if we are not in the
adjustment phase. |
Orderable |
getOrder()
Returns the Order |
java.util.List |
getResults()
Returns the Results of the order. |
int |
getUnusedPendingBuilds()
Returns the number of unused builds pending. |
int |
getUnusedPendingWaives()
Returns the number of unused builds waived. |
boolean |
isAdjustmentPhase()
Returns true if this is an PhaseType.ADJUSTMENT phase order. |
boolean |
isWaivedBuild()
Returns if a Build has been waived.. |
java.lang.String |
toString()
For debugging only |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public NJudgeOrderParser.NJudgeOrder(Orderable order, java.util.List results, boolean isAdjustmentPhase)
public NJudgeOrderParser.NJudgeOrder(Orderable order, Result aResult, boolean isAdjustmentPhase)
public NJudgeOrderParser.NJudgeOrder(Power power, int unusedPendingBuilds, int unusedPendingWaives, Result result)
public NJudgeOrderParser.NJudgeOrder(Power power, Result result)
Method Detail |
public Orderable getOrder()
public java.util.List getResults()
public boolean isAdjustmentPhase()
public int getUnusedPendingBuilds()
Note that this applies only to ADJUSTMENT phase orders. This will
throw an IllegalStateException if !isAdjustmentPhase()
.
public int getUnusedPendingWaives()
Note that this applies only to ADJUSTMENT phase orders. This will
throw an IllegalStateException if !isAdjustmentPhase()
.
public boolean isWaivedBuild()
If this is NOT a waived build, this will return false
.
This will be removed in a future version, when jDip-style Waive orders are fully supported.
Note that this applies only to ADJUSTMENT phase orders. This will
throw an IllegalStateException if !isAdjustmentPhase()
.
public Power getAdjustmentPower()
getUnusedPendingBuilds()
getUnusedPendingWaives()
isWaivedBuild()
null
if we are
in the adjustment phase, but, none of isWaivedBuild() or
getUnusedXXX() methods have been set.
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |