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)
Determines whether the specified
Object is equal to this instance. |
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()
Returns a hash code for this instance.
|
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()
Returns a
String that represents
this instance. |
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)
public final Operator getOperation()
public final void setOperation(Operator value)
public final java.lang.Object getResourceValue()
public final void setResourceValue(java.lang.Object value)
public java.lang.String toString()
String
that represents
this instance.toString
in
class java.lang.Object
String
that represents this instance.public boolean equals(java.lang.Object obj)
Object
is equal to this instance.equals
in
class java.lang.Object
obj
- The Object
to compare with this
instance.true
if the specified Object
is equal
to this instance; otherwise, false
.public int hashCode()
hashCode
in
class java.lang.Object
STK Scalability 1.3 API for Java