fr.ove.openmath.jome.model
Class Constant

java.lang.Object
  extended byfr.ove.openmath.jome.model.Node
      extended byfr.ove.openmath.jome.model.FormulaTreeStructure
          extended byfr.ove.openmath.jome.model.Constant
All Implemented Interfaces:
java.lang.Cloneable, Comparable, ControlListener, java.util.EventListener, Iconifiable, Maskable, Modifiable, java.io.Serializable
Direct Known Subclasses:
StringLowerCaseConstant, VariableOrNumber

public class Constant
extends FormulaTreeStructure

Version:
2.1 10/01/2000
Author:
© 2000 DIRAT Laurent
See Also:
Serialized Form

Constructor Summary
Constant()
          The Constructor.
 
Method Summary
 java.lang.String createLinear(java.lang.String linear)
          The Creation of the corresponding linear expression of the formula.
 java.lang.String evaluate()
          Evaluates the instance.
 java.lang.String getValue()
          Returns the value.
 FormulaTreeStructure insert(FormulaTreeStructure current)
          Inserts the operator instance in the formula tree, from the current insertion position.
 boolean isIconifiable()
          Returns true if the instance is iconifiable.
 boolean isOperator()
          To check is the instance is an operator.
 void setValue(java.lang.String value)
          Sets the value.
 
Methods inherited from class fr.ove.openmath.jome.model.FormulaTreeStructure
addModelListener, consumeControlEvent, findLocation, fireModelEvent, getAreOperandsMovable, getAsOperandPriority, getAsOperatorPriority, getCrossRef, getIconName, getListeners, getResourceIdentifier, goTo, iconify, isEqual, isGreater, isGreaterOrEqual, isIcon, isLesser, isLesserOrEqual, isTemplate, isVisible, moveOperands, removeAllModelListener, removeModelListener, setAreOperandsMovable, setAsOperandPriority, setAsOperatorPriority, setCrossRef, setIconName, setIsIconifiable, setIsTemplate, setIsVisble, setResourceIdentifier, uniconify, uniconifyAll
 
Methods inherited from class fr.ove.openmath.jome.model.Node
addChild, addChild, clone, computeDepth, computeNbStrahler, duplicate, getChild, getChildren, getDepth, getFather, getNbChildren, getNbStrahler, getRank, hasChild, moveChildren, removeAll, removeChild, removeChild, setFather, setNbStrahler
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Constant

public Constant()
The Constructor.

Method Detail

insert

public FormulaTreeStructure insert(FormulaTreeStructure current)
Inserts the operator instance in the formula tree, from the current insertion position. (checks the priorities and goes up in the tree if necessary).

Specified by:
insert in class FormulaTreeStructure
Parameters:
current - the current insertion position.
Returns:
the new insertion position.

createLinear

public java.lang.String createLinear(java.lang.String linear)
The Creation of the corresponding linear expression of the formula.

Specified by:
createLinear in class FormulaTreeStructure

evaluate

public java.lang.String evaluate()
Evaluates the instance.

Specified by:
evaluate in class FormulaTreeStructure

isOperator

public boolean isOperator()
To check is the instance is an operator.

Specified by:
isOperator in class FormulaTreeStructure
Returns:
true if it is an operator. false otherwise.

setValue

public void setValue(java.lang.String value)
Sets the value.

Specified by:
setValue in interface Modifiable
Overrides:
setValue in class FormulaTreeStructure

getValue

public java.lang.String getValue()
Returns the value.

Specified by:
getValue in interface Modifiable
Overrides:
getValue in class FormulaTreeStructure

isIconifiable

public boolean isIconifiable()
Returns true if the instance is iconifiable. false otherwise.

Specified by:
isIconifiable in interface Iconifiable
Overrides:
isIconifiable in class FormulaTreeStructure


Copyright © 1999-2007 Universit?© de Nice Sophia-Antipolis, I3S, Ove SARL, DFKI and Universit?§t des Saarlandes. All Rights Reserved.