public final class TaskPrecondition
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
TaskPrecondition()
Initializes a new instance of the
TaskPrecondition class. |
TaskPrecondition(CommonResources resource,
Operator operation,
java.lang.Object resourceValue)
Initializes a new instance of the
TaskPrecondition class. |
TaskPrecondition(java.lang.String resource,
Operator operation,
java.lang.Object resourceValue)
Initializes a new instance of the
TaskPrecondition class. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
Operator |
getOperation()
Gets the operation.
|
java.lang.String |
getResource()
Gets the resource name.
|
java.lang.Object |
getResourceValue()
Gets the value of the resource.
|
int |
hashCode() |
void |
setOperation(Operator value)
Sets the operation.
|
void |
setResource(java.lang.String value)
Sets the resource name.
|
void |
setResourceValue(java.lang.Object value)
Sets the value of the resource.
|
java.lang.String |
toString() |
public TaskPrecondition()
TaskPrecondition
class.public TaskPrecondition(java.lang.String resource, Operator operation, java.lang.Object resourceValue)
TaskPrecondition
class.resource
- The resource.operation
- The operation.resourceValue
- The resource value.public TaskPrecondition(CommonResources resource, Operator operation, java.lang.Object resourceValue)
TaskPrecondition
class.resource
- The resource.operation
- The operation.resourceValue
- The resource value.public final java.lang.String getResource()
public final void setResource(java.lang.String value)
value
- The resource.public final Operator getOperation()
public final void setOperation(Operator value)
value
- The operation.public final java.lang.Object getResourceValue()
public final void setResourceValue(java.lang.Object value)
value
- The value.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 int hashCode()
hashCode
in class java.lang.Object