fr.ove.openmath.jome.model
Class Function2

java.lang.Object
  extended byfr.ove.openmath.jome.model.Node
      extended byfr.ove.openmath.jome.model.FormulaTreeStructure
          extended byfr.ove.openmath.jome.model.Operator
              extended byfr.ove.openmath.jome.model.Function2
All Implemented Interfaces:
java.lang.Cloneable, Comparable, ControlListener, java.util.EventListener, Iconifiable, Maskable, Modifiable, java.io.Serializable

public class Function2
extends Operator

The operator "*", which is the binary multiplication. (In fact, for implementation needs, we consider it as an n-ary operator)
Multiplication represents a node in the formula tree. Its children are the operands of the operation.

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

Constructor Summary
Function2()
          The Constructor.
 
Method Summary
 FormulaTreeStructure addElement()
          Adds a new element (template) to the end of the list.
 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.
 FormulaTreeStructure insert(FormulaTreeStructure current)
          Inserts the instance in the formula tree structure.
 boolean isOperator()
          To check is the instance is an operator.
 
Methods inherited from class fr.ove.openmath.jome.model.Operator
getTheOperator, getValue, setTheOperator, setValue
 
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, isIconifiable, 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

Function2

public Function2()
The Constructor.

Method Detail

insert

public FormulaTreeStructure insert(FormulaTreeStructure current)
Inserts the instance in the formula tree structure.

Specified by:
insert in class FormulaTreeStructure
Parameters:
current - the position in the formula tree where the operator is to be insert.
Returns:
the new current position int hte formula tree.

isOperator

public boolean isOperator()
Description copied from class: Operator
To check is the instance is an operator.

Overrides:
isOperator in class Operator
Returns:
true if it is an operator. false otherwise.

evaluate

public java.lang.String evaluate()
Description copied from class: FormulaTreeStructure
Evaluates the instance.

Specified by:
evaluate in class FormulaTreeStructure

createLinear

public java.lang.String createLinear(java.lang.String linear)
Description copied from class: FormulaTreeStructure
The Creation of the corresponding linear expression of the formula.

Specified by:
createLinear in class FormulaTreeStructure

addElement

public FormulaTreeStructure addElement()
Adds a new element (template) to the end of the list. Returns the new element.



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