fr.ove.openmath.jome.model
Class Slot

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

public final class Slot
extends FormulaTreeStructure

This class represents the kind of child K-ary will have.

Version:
1.0 24/02/1999
Author:
© 1999 DIRAT Laurent
See Also:
Serialized Form

Constructor Summary
Slot()
          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 getIconName()
          Returns the name of the icon associated to the instance.
 FormulaTreeStructure getNextSlot()
           
 java.lang.String getValue()
          Returns the value.
 FormulaTreeStructure goTo(int priority)
          Returns the father of the node which, from the current instance, have the specified priority.
 FormulaTreeStructure insert(FormulaTreeStructure current)
          Inserts the icon (node) in the formula tree structure.
 boolean isOperator()
          To check is the instance is an operator.
 void setNextSlot(FormulaTreeStructure nextSlot)
           
 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, getListeners, getResourceIdentifier, 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

Slot

public Slot()
The Constructor.

Method Detail

getNextSlot

public FormulaTreeStructure getNextSlot()

setNextSlot

public void setNextSlot(FormulaTreeStructure nextSlot)

goTo

public FormulaTreeStructure goTo(int priority)
Description copied from class: FormulaTreeStructure
Returns the father of the node which, from the current instance, have the specified priority.

Overrides:
goTo in class FormulaTreeStructure
Parameters:
priority - the specified priority.
Returns:
the desired father.

insert

public FormulaTreeStructure insert(FormulaTreeStructure current)
Inserts the icon (node) 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.

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.

getIconName

public java.lang.String getIconName()
Returns the name of the icon associated to the instance.

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

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


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