|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.embl.ebi.escience.scufl.ConcurrencyConstraint
public class ConcurrencyConstraint
Represents a concurrency constraint between two processors
| Field Summary | |
|---|---|
static int |
ABORTED
Signifies that the processor has failed in some fashion |
static int |
COMPLETED
Signifies that the processor has completed |
static int |
RUNNING
Signifies that the processor has an active thread in the 'invoke' method |
static int |
SCHEDULED
Signifies that the processor has been created but is not running |
| Constructor Summary | |
|---|---|
ConcurrencyConstraint(ScuflModel model,
java.lang.String name,
Processor controller,
Processor target,
int targetStateFrom,
int targetStateTo,
int controllerStateGuard)
Create a new concurrency constraint. |
|
| Method Summary | |
|---|---|
int |
getControllerStateGuard()
Return the state the controller processor must be in in order to permit the specified transition of the target processor |
Processor |
getControllingProcessor()
Return the processor whos state is controlling the transition of the target processor |
java.lang.String |
getName()
Return the name of the constraint |
Processor |
getTargetProcessor()
Return the processor that this constraint is regulating |
int |
getTargetStateFrom()
Return the state from which the target processor will move in the event of the control state being satisfied |
int |
getTargetStateTo()
Return the state to which the target processor will be allowed to change if the control state is satisfied |
static java.lang.String |
statusCodeToString(int status)
Convert a state int to a String representation of it |
static int |
statusStringToInt(java.lang.String status)
Convert a string into an int status code, the string must be one of scheduled, running, completed, aborted and is not case sensitive. |
java.lang.String |
toString()
Override toString method to display the two processors, controller first, that this constraint applies to. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int SCHEDULED
public static final int RUNNING
public static final int COMPLETED
public static final int ABORTED
| Constructor Detail |
|---|
public ConcurrencyConstraint(ScuflModel model,
java.lang.String name,
Processor controller,
Processor target,
int targetStateFrom,
int targetStateTo,
int controllerStateGuard)
throws DuplicateConcurrencyConstraintNameException,
ConcurrencyConstraintCreationException
DuplicateConcurrencyConstraintNameException
ConcurrencyConstraintCreationException| Method Detail |
|---|
public java.lang.String getName()
public Processor getTargetProcessor()
public Processor getControllingProcessor()
public int getTargetStateFrom()
public int getTargetStateTo()
public int getControllerStateGuard()
public static java.lang.String statusCodeToString(int status)
public static int statusStringToInt(java.lang.String status)
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||