modesteditor.core.model
Class Process

java.lang.Object
  extended by modesteditor.core.model.Model
      extended by modesteditor.core.model.Process

public class Process
extends Model

Model of a MoDeST process.


Field Summary
protected  java.util.List<ModestAction> actions
           
protected  java.util.List<Model> childModels
           
protected  java.util.List<ModestException> exceptions
           
protected  java.util.List<Process> processes
           
protected  java.util.List<ModestType> structs
           
protected  java.util.List<ModestVariable> variables
           
 
Fields inherited from class modesteditor.core.model.Model
column, length, line, name, parent
 
Constructor Summary
Process()
           
Process(java.lang.String name, int line, int column)
           
 
Method Summary
 void accept(IModelVisitor visitor, java.lang.Object passAlongArgument)
           
 void add(Model toAdd)
           
protected  void addAction(ModestAction act)
          Add a child action to the list of children
 void addActions(java.util.List acts)
          Add a list of child actions to the list of children
protected  void addChild(Model model)
          Add a child model to the list of children
 void addExceptions(java.util.List excs)
          Add a list of child exceptions to the list of children
 void addModels(java.util.List models)
          Add a list of models to the list of children
protected  void addModestException(ModestException exc)
          Add a child exception to the list of children
protected  void addProcess(Process proc)
          Add a child process to the list of children
 void addProcesses(java.util.List procs)
          Add a list of child processes to the list of children
protected  void addType(ModestType struc)
          Add a child type definition to the list of children
 void addTypes(java.util.List strucs)
          Add a list of child type definitions to the list of children
protected  void addVariable(ModestVariable var)
          Add a child variable to the list of children
 void addVariables(java.util.List vars)
          Add a list of child variables to the list of children
 java.util.List getActions()
          Returns the child actions
 java.util.List getChildren()
          Returns a list of the child models
 java.util.List getExceptions()
          Returns the child exceptions
 java.util.List getProcesses()
          Returns the child processes
 java.util.List getTypes()
          Returns the child type definitions
 java.util.List getVariables()
          Returns the child variables
 void remove(Model toRemove)
           
protected  void removeAction(ModestAction act)
           
protected  void removeChild(Model model)
           
protected  void removeModestException(ModestException exc)
           
protected  void removeProcess(Process proc)
           
protected  void removeType(ModestType struc)
           
protected  void removeVariable(ModestVariable var)
           
 int size()
          Answer the total number of items the receiver contains.
 
Methods inherited from class modesteditor.core.model.Model
getColumn, getLength, getLine, getName, getParent, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

processes

protected java.util.List<Process> processes

actions

protected java.util.List<ModestAction> actions

exceptions

protected java.util.List<ModestException> exceptions

variables

protected java.util.List<ModestVariable> variables

structs

protected java.util.List<ModestType> structs

childModels

protected java.util.List<Model> childModels
Constructor Detail

Process

public Process()

Process

public Process(java.lang.String name,
               int line,
               int column)
Method Detail

getProcesses

public java.util.List getProcesses()
Returns the child processes

Returns:
the child processes

getTypes

public java.util.List getTypes()
Returns the child type definitions

Returns:
the child type definitions

getActions

public java.util.List getActions()
Returns the child actions

Returns:
the child actions

getExceptions

public java.util.List getExceptions()
Returns the child exceptions

Returns:
the child exceptions

getVariables

public java.util.List getVariables()
Returns the child variables

Returns:
the child variables

getChildren

public java.util.List getChildren()
Returns a list of the child models

Returns:
list of the child models

addProcess

protected void addProcess(Process proc)
Add a child process to the list of children

Parameters:
proc -

addAction

protected void addAction(ModestAction act)
Add a child action to the list of children

Parameters:
act -

addType

protected void addType(ModestType struc)
Add a child type definition to the list of children

Parameters:
struc -

addModestException

protected void addModestException(ModestException exc)
Add a child exception to the list of children

Parameters:
exc -

addVariable

protected void addVariable(ModestVariable var)
Add a child variable to the list of children

Parameters:
var -

addChild

protected void addChild(Model model)
Add a child model to the list of children

Parameters:
model -

remove

public void remove(Model toRemove)

removeProcess

protected void removeProcess(Process proc)

removeAction

protected void removeAction(ModestAction act)

removeModestException

protected void removeModestException(ModestException exc)

removeVariable

protected void removeVariable(ModestVariable var)

removeType

protected void removeType(ModestType struc)

removeChild

protected void removeChild(Model model)

add

public void add(Model toAdd)

size

public int size()
Answer the total number of items the receiver contains.


accept

public void accept(IModelVisitor visitor,
                   java.lang.Object passAlongArgument)
Specified by:
accept in class Model

addActions

public void addActions(java.util.List acts)
Add a list of child actions to the list of children

Parameters:
acts -

addExceptions

public void addExceptions(java.util.List excs)
Add a list of child exceptions to the list of children

Parameters:
excs -

addProcesses

public void addProcesses(java.util.List procs)
Add a list of child processes to the list of children

Parameters:
procs -

addTypes

public void addTypes(java.util.List strucs)
Add a list of child type definitions to the list of children

Parameters:
strucs -

addVariables

public void addVariables(java.util.List vars)
Add a list of child variables to the list of children

Parameters:
vars -

addModels

public void addModels(java.util.List models)
Add a list of models to the list of children

Parameters:
models -