|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmodesteditor.core.model.ModestSimulation
public class ModestSimulation
Maintains the high-level representation of an MoDeST simulation, including the parse tree and the identifiers defined in the program.
An ModestSimulation works on one document being edited in the workspace. It has to be updated by the ModestEditor whenever the document is changed.
Constructor Summary | |
---|---|
ModestSimulation(org.eclipse.jface.text.IDocument document)
Creates a ModestSimulation attached to the given document. |
Method Summary | |
---|---|
void |
addListener(IModestSimulationListener listener)
Adds a listener to this program. |
antlr.collections.AST |
getCurrentAST()
|
Model[] |
getModels()
Returns the list of identifiers bound by the program. |
org.eclipse.jface.text.IRegion[] |
getProblems()
Returns the regions where problems were found in the simulation. |
java.util.ArrayList<java.lang.String> |
getProcesses()
|
Process |
getSim()
Returns the simulation's root Process which is first updated if the document isn't parsed yet. |
java.util.ArrayList<java.lang.String> |
getVariables()
|
org.eclipse.jface.text.IRegion[] |
getWarnings()
Returns the warnings for unused variables. |
void |
removeListener(IModestSimulationListener listener)
Removes the listener from this program. |
void |
update()
Updates the representation of the program. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ModestSimulation(org.eclipse.jface.text.IDocument document)
Method Detail |
---|
public Process getSim()
public Model[] getModels()
public org.eclipse.jface.text.IRegion[] getProblems()
public org.eclipse.jface.text.IRegion[] getWarnings()
public java.util.ArrayList<java.lang.String> getVariables()
public java.util.ArrayList<java.lang.String> getProcesses()
public void update()
public void addListener(IModestSimulationListener listener)
public void removeListener(IModestSimulationListener listener)
public antlr.collections.AST getCurrentAST()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |