org.jbpm.sim.exe
Class ExperimentReader
java.lang.Object
org.jbpm.sim.exe.ExperimentReader
- All Implemented Interfaces:
- ProblemListener
public class ExperimentReader
- extends java.lang.Object
- implements ProblemListener
The ExperimentReader is responsible for creating a
org.jbpm.sim.exe.JbpmSimulationExperiment out of
the experiment XML.
- Author:
- bernd.ruecker@camunda.com
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
experimentDoc
protected org.dom4j.Document experimentDoc
ExperimentReader
public ExperimentReader(java.lang.String experimentXml)
ExperimentReader
public ExperimentReader(org.xml.sax.InputSource inputSource)
getXmlDocument
protected org.dom4j.Document getXmlDocument()
addProblem
public void addProblem(Problem problem)
- Specified by:
addProblem in interface ProblemListener
addProcessDefinition
public void addProcessDefinition(java.lang.String processName,
java.lang.String processXml)
- add a process definition to this reader, which can be referenced from a sim-process
in a experiment. This is useful in test cases, where you don't store the
process in a XML file, but as a String.
- Parameters:
pd -
readExperiment
public JbpmSimulationExperiment readExperiment()
addScenario
protected void addScenario(JbpmSimulationScenario scenario)
readDistribution
public static DistributionDefinition readDistribution(org.dom4j.Element distributionElement)
readScenario
protected JbpmSimulationScenario readScenario(org.dom4j.Element scenarioElement,
org.dom4j.Element baseScenarioElement)
afterScenarioRead
protected void afterScenarioRead(JbpmSimulationScenario scenario,
org.dom4j.Element scenarioElement,
org.dom4j.Element baseScenarioElement)
beforeScenarioRead
protected void beforeScenarioRead(JbpmSimulationScenario scenario,
org.dom4j.Element scenarioElement,
org.dom4j.Element baseScenarioElement)
readCostPerTimeUnit
protected java.lang.Double readCostPerTimeUnit(org.dom4j.Element resourcePoolElement)
Copyright © 2010 JBoss Community. All Rights Reserved.