be.ac.ulg.montefiore.run.totem.visualtopo.guiComponents.scenario
Class ScenarioJTree

java.lang.Object
  extended by be.ac.ulg.montefiore.run.totem.visualtopo.guiComponents.scenario.ScenarioJTree

public class ScenarioJTree
extends java.lang.Object

Represent a scenario by a JTree object. Get the events name and parameters through reflection from jaxb. It permit to choose to display either all possible variables or only the variables that were set in the XML file. The variables that were not set are displayed in grey.

Creation date: 5 janv. 2006

Author:
Ga�l Monfort (monfort@run.montefiore.ulg.ac.be)
See Also:
EventTypeNode

Constructor Summary
ScenarioJTree(Scenario scenario, java.io.OutputStream output)
          Build the internal JTree representation, displaying only the variables that are set.
ScenarioJTree(Scenario scenario, java.io.OutputStream output, boolean displayNotSet)
          Build the internal JTree representation
 
Method Summary
 void collapseAll()
           
 int executeToSelection()
           
 void expandAll()
           
 int finishExecution()
           
 javax.swing.JTree getJTree()
          returns a reference to the tree
 boolean isExecutionFinished()
           
 boolean isStopOnError()
           
 void setStopOnError(boolean stopOnError)
           
 void step()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScenarioJTree

public ScenarioJTree(Scenario scenario,
                     java.io.OutputStream output)
Build the internal JTree representation, displaying only the variables that are set.

Parameters:
scenario - the scenario to represent in the tree.
output - OutputStream used to display scenario execution result.

ScenarioJTree

public ScenarioJTree(Scenario scenario,
                     java.io.OutputStream output,
                     boolean displayNotSet)
Build the internal JTree representation

Parameters:
scenario - the scenario to represent in the tree.
output - OutputStream used to display scenario execution result.
displayNotSet - set to display the variable that were not set in the scenario XML file.
Method Detail

getJTree

public javax.swing.JTree getJTree()
returns a reference to the tree

Returns:

isStopOnError

public boolean isStopOnError()

setStopOnError

public void setStopOnError(boolean stopOnError)

step

public void step()

executeToSelection

public int executeToSelection()

finishExecution

public int finishExecution()

isExecutionFinished

public boolean isExecutionFinished()

expandAll

public void expandAll()

collapseAll

public void collapseAll()


Copyright © 2004-2007 Research Unit in Networking, All Rights Reserved.