[operations] [attributes] [fields] [template] [definition]
[implementation] [documentation]
To use the search tool you need to use a browser which supports JAVA (c)

[next] [prev] [superclass] [next peer] [prev peer] [subclass] [index] [hierarchy]

Condition

inherits from Object

Object <- Condition



Operations

Get list of all operations

ConditionPasses


Attributes

Get list of all attributes

FailureText
Target


Fields

Field Type
Condition: operation: OperationNumber
target: Object
failureText: Text
reverseSense: Boolean


Instance template

instance Condition tag;
      operation: nilOperation;
         target: nilObject;
    failureText: nilObject;
   reverseSense: false;
end instance;

Class definition

 
Define Class Condition;
    inherits from Object;
    
    field operation:        OperationNumber;                
        // boolean-returning operation number to call on target
    field target:           Object, weak, getter, setter;   
        // object on which to call operation
    field failureText:      Text, getter, setter;           
        // text to use if condition fails
    field reverseSense:     Boolean;                        
        // if set, reverse sense of boolean operation success
    
    operation ConditionPasses(): Boolean;
    attribute Target: Object, safe;
    attribute FailureText: Text;
end class;