EASE.Sensing.Specification
Class UnaryExpression

java.lang.Object
  |
  +--EASE.Sensing.Specification.Cell
        |
        +--EASE.Sensing.Specification.UnaryExpression

public class UnaryExpression
extends Cell
implements java.io.Serializable, Constants

See Also:
Serialized Form

Field Summary
static int ABSOLUTE
           
static int ACOS
           
static int ASIN
           
static int ATAN
           
static int COS
           
private  Debugger debugger
           
private  Node engineNode
           
static int HIGHEST_INDEX
           
static int NOT
           
 int operator
           
(package private) static long serialVersionUID
           
static int SIN
           
static int SQR
           
static int SQRT
           
static int TAN
           
static java.util.Vector types
          A vector containing all the possible operator types
private static java.util.Hashtable typesHashed
           
static int UNKNOWN
           
 
Fields inherited from class EASE.Sensing.Specification.Cell
comment, creationDate, debugger, defaultFileName, fileName, instantiatedParams, listeners, name, previousVersion, serialVersionUID, subCells, subsequentVersion, treePath
 
Constructor Summary
UnaryExpression(java.lang.String name, java.lang.String comment, Cell operand, int operator, Cell previous)
           
UnaryExpression(java.lang.String name, java.lang.String comment, Cell operand, int operator, Cell previous, java.util.Vector instantiated)
           
 
Method Summary
 Node getEngineNode()
           
protected  Cell getOperand()
           
 int getType()
          Get the return type of the cell.
static java.util.Vector getTypes()
           
static ExpressionType opToExpType(int op)
          Returns an expression type object for the operator.
static java.lang.String opToStr(int i)
           
static int strToOp(java.lang.String s)
           
 
Methods inherited from class EASE.Sensing.Specification.Cell
addChangeListener, addSub, createChildDisplayTreeBranch, createParentDisplayTreeBranch, getComment, getFactory, getFileName, getFullName, getHistory, getInstantiatedParams, getListenerNames, getListType, getName, getParameters, getPrevious, getSub, getSubs, getSuccessor, getTreePath, hasListeners, hasParameters, instantiateParamsForEngine, instantiateParamsForEngine, justCreated, matchParam, notifyAllListeners, notifyChange, removeChangeListener, removeInstantiated, saveValidateSubs, saveValidateVector, setFileName, setInstantiatedParams, setSubs, setSuccessor, setTreePath, shortFileName, toString, validateSubs, validateVector
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

engineNode

private Node engineNode

types

public static java.util.Vector types
A vector containing all the possible operator types

typesHashed

private static java.util.Hashtable typesHashed

operator

public int operator

UNKNOWN

public static final int UNKNOWN

ABSOLUTE

public static final int ABSOLUTE

SQRT

public static final int SQRT

SQR

public static final int SQR

SIN

public static final int SIN

COS

public static final int COS

TAN

public static final int TAN

ASIN

public static final int ASIN

ACOS

public static final int ACOS

ATAN

public static final int ATAN

NOT

public static final int NOT

HIGHEST_INDEX

public static final int HIGHEST_INDEX

debugger

private transient Debugger debugger

serialVersionUID

static final long serialVersionUID
Constructor Detail

UnaryExpression

public UnaryExpression(java.lang.String name,
                       java.lang.String comment,
                       Cell operand,
                       int operator,
                       Cell previous)

UnaryExpression

public UnaryExpression(java.lang.String name,
                       java.lang.String comment,
                       Cell operand,
                       int operator,
                       Cell previous,
                       java.util.Vector instantiated)
Method Detail

opToStr

public static java.lang.String opToStr(int i)

strToOp

public static int strToOp(java.lang.String s)

getType

public int getType()
Get the return type of the cell.

Overrides:
getType in class Cell

getEngineNode

public Node getEngineNode()
Overrides:
getEngineNode in class Cell

getOperand

protected Cell getOperand()

getTypes

public static java.util.Vector getTypes()

opToExpType

public static ExpressionType opToExpType(int op)
Returns an expression type object for the operator.

Used for setting combos correctly.