Back to index

wims  3.65+svn20090927
Public Member Functions | Static Public Attributes | Private Attributes
fr.ove.openmath.jome.model.processor.ProcessorImpl Class Reference

An implementation of a. More...

Inheritance diagram for fr.ove.openmath.jome.model.processor.ProcessorImpl:
Inheritance graph
[legend]
Collaboration diagram for fr.ove.openmath.jome.model.processor.ProcessorImpl:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ProcessorImpl (Formula formula)
 The constructor.
void doProcess ()
 Does processing.
void setFormula (Formula formula)
 Sets the formula to processs.
Formula getFormula ()
 Returns the formula to process.
void setUpdateDisplay (boolean updateDisplay)
 Specifies if, after processing the formula, the display has to be updated.
boolean getUpdateDisplay ()
 Checks if, after processing the formula, the display has to be updated.
void init ()
 Initialisation of the processor.
void setProcessingId (int processingId)
 Sets the processing to execute.
int getProcessingId ()
 Returns the current processing to execute.
void setLevel (int level)
 Sets the level from which the processing starts.
int getLevel ()
 Returns the level from which the processing starts.

Static Public Attributes

static final int COMPUTE = 1
 The different processing to apply to the formula.
static final int SIMPLE_ICONIFICATION = 2
 Iconify the formula according to the iconification level fixed.
static final int RECURSIVE_ICONIFICATION = 3
 Iconify the formula according to the iconification level fixed.
static final int COMPUTE_AND_ICONIFY = 4
 Compute and iconify (recursivly) the formula according to the iconification level fixed.

Private Attributes

Formula formula
 The formula to process.
boolean updateDisplay = false
 To check if we have to update the display of the formula.
int processingId = COMPUTE_AND_ICONIFY
 The processing to execute.
int level = 0
 The level form which the processing starts.

Detailed Description

An implementation of a.

See also:
Processor.
The method doProcess does nothing. Subclasses have to, at least, override it to provide the desired processing.
Author:
2000 DIRAT Laurent
Version:
1.0 17/08/2000

Definition at line 41 of file ProcessorImpl.java.


Constructor & Destructor Documentation

The constructor.

Parameters:
formulathe formula to process.

Definition at line 68 of file ProcessorImpl.java.

                                          {
        this.formula = formula;
    }

Member Function Documentation

Returns the formula to process.

Implements fr.ove.openmath.jome.model.processor.Processor.

Definition at line 88 of file ProcessorImpl.java.

                                {
        return formula;
    }

Here is the caller graph for this function:

Returns the level from which the processing starts.

Implements fr.ove.openmath.jome.model.processor.Processor.

Definition at line 147 of file ProcessorImpl.java.

                          {
        return level;
    }

Here is the caller graph for this function:

Returns the current processing to execute.

Implements fr.ove.openmath.jome.model.processor.Processor.

Definition at line 132 of file ProcessorImpl.java.

                                 {
        return processingId;
    }

Here is the caller graph for this function:

Checks if, after processing the formula, the display has to be updated.

Returns:
true if the display needs update. false otherwise.

Implements fr.ove.openmath.jome.model.processor.Processor.

Definition at line 108 of file ProcessorImpl.java.

                                      {
        return updateDisplay;
    }

Here is the caller graph for this function:

Initialisation of the processor.

!! Method to override by subclasses !! The default is just setting the processing Id to be COMPUTE_AND_ICONIFY;

Implements fr.ove.openmath.jome.model.processor.Processor.

Definition at line 117 of file ProcessorImpl.java.

Here is the call graph for this function:

Sets the formula to processs.

Implements fr.ove.openmath.jome.model.processor.Processor.

Definition at line 81 of file ProcessorImpl.java.

                                            {
        this.formula = formula;
    }

Sets the level from which the processing starts.

Parameters:
levelthe level.

Implements fr.ove.openmath.jome.model.processor.Processor.

Reimplemented in fr.ove.openmath.jome.model.processor.WidthDepthProcessor.

Definition at line 140 of file ProcessorImpl.java.

                                    {
        this.level = level;
    }

Here is the caller graph for this function:

Sets the processing to execute.

Parameters:
processingIdthe processing Id.

Implements fr.ove.openmath.jome.model.processor.Processor.

Definition at line 125 of file ProcessorImpl.java.

Here is the caller graph for this function:

Specifies if, after processing the formula, the display has to be updated.

Parameters:
updateDisplaytrue if the display needs update. false otherwise.

Implements fr.ove.openmath.jome.model.processor.Processor.

Definition at line 98 of file ProcessorImpl.java.

Here is the caller graph for this function:


Member Data Documentation

The different processing to apply to the formula.

Compute the the necessaru stuff for the iconifcation of the formula.

Definition at line 160 of file ProcessorImpl.java.

Compute and iconify (recursivly) the formula according to the iconification level fixed.


This is the default behaviour.

Definition at line 180 of file ProcessorImpl.java.

The formula to process.

Definition at line 45 of file ProcessorImpl.java.

The level form which the processing starts.

Definition at line 62 of file ProcessorImpl.java.

The processing to execute.


The default corresponds to ProcessorImpl.COMPUTE_AND_ICONIFY.

Definition at line 57 of file ProcessorImpl.java.

Iconify the formula according to the iconification level fixed.


We assume the necessary computation for the iconification of the formula was previously done.
This is a recursive iconification process. Subtrees of iconfied ones are also iconified.

Definition at line 174 of file ProcessorImpl.java.

Iconify the formula according to the iconification level fixed.


We assume the necessary computation for the iconification of the formula was previously done.
This is a simple iconification process. Subtrees of iconfied ones are not iconified.

Definition at line 167 of file ProcessorImpl.java.

To check if we have to update the display of the formula.


The default is false.

Definition at line 51 of file ProcessorImpl.java.


The documentation for this class was generated from the following file: