|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ptolemy.domains.modal.kernel.RelationType
public final class RelationType
A static class contains a list of types for relation node. There are six different types:
INVALID TRUE FALSE EQUAL_INEQUAL LESS_THAN GREATER_THAN
For a leaf node evaluated as a boolean token, its relationType is decided by the boolean value of the result boolean token: TRUE for true and FALSE for false.
For a relation node, (scalarLeft relationOperator scalarRight), the relationType depends on the relationOperator. If the relationOperator is '==' or '!=', the relationType can be EQUAL_INEQUAL indicating the two scalars equal or not equal; the relation type is LESS_THAN to indicate that the left scalar is less than the right one, and GREATER_THAN to indicate left scalar is bigger than the right one. For the other kinds of relation operators, the relationType is decided by the boolean value of the evaluation result, i.e., TRUE for true and FALSE for false.
The INVALID type is for a relation not evaluated yet.
Red (hyzheng) |
Yellow (hyzheng) |
Field Summary | |
---|---|
static int |
EQUAL_INEQUAL
Relation type a relation node that is evaluated to be true while the relation operation is not equal or inequal. |
static int |
FALSE
Relation type a relation node that is evaluated to be fale while the relation operation is not equal or inequal. |
static int |
GREATER_THAN
Relation type a relation node that is evaluated to be false and the left token is greater than the right token, while the relation operation is not equal or inequal. |
static int |
INVALID
Relation type a relation node that is not evaluated. |
static int |
LESS_THAN
Relation type a relation node that is evaluated to be false and the left token is less than the right token, while the relation operation is not equal or inequal. |
static int |
TRUE
Relation type a relation node that is evaluated to be true while the relation operation is not equal or inequal. |
Constructor Summary | |
---|---|
RelationType()
|
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int INVALID
public static final int TRUE
public static final int FALSE
public static final int EQUAL_INEQUAL
public static final int LESS_THAN
public static final int GREATER_THAN
Constructor Detail |
---|
public RelationType()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |