org.optimizationservices.oscommon.nonlinear
Class OSnLNode

java.lang.Object
  extended by org.optimizationservices.oscommon.nonlinear.OSnLNode
Direct Known Subclasses:
OSnLNodeAbs, OSnLNodeAnd, OSnLNodeArccos, OSnLNodeArccosh, OSnLNodeArcRef, OSnLNodeArcsin, OSnLNodeArcsinh, OSnLNodeArctan, OSnLNodeArctanh, OSnLNodeArg, OSnLNodeCeiling, OSnLNodeCos, OSnLNodeCosh, OSnLNodeDivide, OSnLNodeE, OSnLNodeEPS, OSnLNodeEq, OSnLNodeEULERGAMMA, OSnLNodeExp, OSnLNodeFALSE, OSnLNodeFloor, OSnLNodeGeq, OSnLNodeGt, OSnLNodeIdentifier, OSnLNodeIf, OSnLNodeImplies, OSnLNodeINF, OSnLNodeLeq, OSnLNodeLn, OSnLNodeLog, OSnLNodeLt, OSnLNodeMax, OSnLNodeMean, OSnLNodeMin, OSnLNodeMinus, OSnLNodeNAN, OSnLNodeNegate, OSnLNodeNeq, OSnLNodeNodeRef, OSnLNodeNot, OSnLNodeNumber, OSnLNodeOr, OSnLNodePI, OSnLNodePlus, OSnLNodePower, OSnLNodeQTerm, OSnLNodeQuadratic, OSnLNodeSim, OSnLNodeSimInput, OSnLNodeSimOutput, OSnLNodeSin, OSnLNodeSinh, OSnLNodeSquare, OSnLNodeSquareRoot, OSnLNodeSum, OSnLNodeTan, OSnLNodeTanh, OSnLNodeTimes, OSnLNodeTRUE, OSnLNodeUserF, OSnLNodeVariable, OSnLNodeXor, OSnLNodeXPath, OSnLNodeXPathIndex

public abstract class OSnLNode
extends java.lang.Object

The OSnLNode class represents a node in an expression tree for a nonlinear function (linear ones being special cases) and provide convenience methods to process the node. It is an abstract (or generic) node from which we derive concrete operator nodes.

Since:
OS 1.0
Version:
1.0, 03/14/2004
Author:
Robert Fourer, Jun Ma, Kipp Martin
See Also:
org.optimizationservices.oscommon.nonlinear.OSExpressionTree;

Constructor Summary
OSnLNode()
           
 
Method Summary
 boolean reLabelVariableIndices(int[] newVariableIndices)
          relabel variable indices, e.g.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OSnLNode

public OSnLNode()
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
the string representation of the OSnLNode object.

reLabelVariableIndices

public boolean reLabelVariableIndices(int[] newVariableIndices)
relabel variable indices, e.g. X0 -> X2; X1 -> X0; X2 -> X1.

Parameters:
newVariableIndices - holds the new varialbe indices. For the example above it would be [2, 0, 1].
Returns:
whether the relabeling is successful or not.