org.drools.fluent.simulation.impl
Class DefaultSimulationFluent

java.lang.Object
  extended by org.drools.fluent.test.impl.AbstractTestableFluent<SimulationFluent>
      extended by org.drools.fluent.simulation.impl.DefaultSimulationFluent
All Implemented Interfaces:
org.drools.fluent.FluentRoot, SimulationFluent, TestableFluent<SimulationFluent>

public class DefaultSimulationFluent
extends AbstractTestableFluent<SimulationFluent>
implements SimulationFluent


Constructor Summary
DefaultSimulationFluent()
           
 
Method Summary
 SimulationFluent addCommand(org.drools.command.Command command)
           
 void assureActiveKnowledgeBase()
           
 String getActiveKnowledgeBaseId()
           
 String getActiveKnowledgeBuilderId()
           
 String getActiveKnowledgeSessionId()
           
 KnowledgeBaseSimFluent getKnowledgeBase()
           
 KnowledgeBaseSimFluent getKnowledgeBase(String id)
           
 KnowledgeBuilderSimFluent getKnowledgeBuilder()
           
 KnowledgeBuilderSimFluent getKnowledgeBuilder(String id)
           
 SimulationFluent getPath(String id)
           
 org.drools.simulation.Simulation getSimulation()
          Gets the Simulation
 StatefulKnowledgeSessionSimFluent getStatefulKnowledgeSession()
           
 StatefulKnowledgeSessionSimFluent getStatefulKnowledgeSession(String id)
           
<P> org.drools.fluent.VariableContext<P>
getVariableContext()
           
 KnowledgeBaseSimFluent newKnowledgeBase()
           
 KnowledgeBaseSimFluent newKnowledgeBase(String id)
           
 KnowledgeBuilderSimFluent newKnowledgeBuilder()
           
 KnowledgeBuilderSimFluent newKnowledgeBuilder(String id)
           
 SimulationFluent newPath()
           
 SimulationFluent newPath(String id)
           
 SimulationFluent newRelativeStep(long relativeDistanceMillis)
           
 SimulationFluent newRelativeStep(long relativeDistance, TimeUnit timeUnit)
           
 StatefulKnowledgeSessionSimFluent newStatefulKnowledgeSession()
           
 StatefulKnowledgeSessionSimFluent newStatefulKnowledgeSession(String id)
           
 SimulationFluent newStep(long distanceMillis)
           
 SimulationFluent newStep(long distanceMillis, TimeUnit timeUnit)
           
 void runSimulation()
          Run the Simulation with startTimeMillis now.
 void runSimulation(long startTimeMillis)
          Run the Simulation.
 
Methods inherited from class org.drools.fluent.test.impl.AbstractTestableFluent
test, test, test, test
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.drools.fluent.test.TestableFluent
test, test, test, test
 

Constructor Detail

DefaultSimulationFluent

public DefaultSimulationFluent()
Method Detail

getVariableContext

public <P> org.drools.fluent.VariableContext<P> getVariableContext()
Specified by:
getVariableContext in interface org.drools.fluent.FluentRoot

newPath

public SimulationFluent newPath()

newPath

public SimulationFluent newPath(String id)
Specified by:
newPath in interface SimulationFluent

getPath

public SimulationFluent getPath(String id)
Specified by:
getPath in interface SimulationFluent

newStep

public SimulationFluent newStep(long distanceMillis)
Specified by:
newStep in interface SimulationFluent

newStep

public SimulationFluent newStep(long distanceMillis,
                                TimeUnit timeUnit)
Specified by:
newStep in interface SimulationFluent

newRelativeStep

public SimulationFluent newRelativeStep(long relativeDistanceMillis)
Specified by:
newRelativeStep in interface SimulationFluent

newRelativeStep

public SimulationFluent newRelativeStep(long relativeDistance,
                                        TimeUnit timeUnit)
Specified by:
newRelativeStep in interface SimulationFluent

addCommand

public SimulationFluent addCommand(org.drools.command.Command command)
Specified by:
addCommand in interface SimulationFluent
Specified by:
addCommand in class AbstractTestableFluent<SimulationFluent>

getActiveKnowledgeBuilderId

public String getActiveKnowledgeBuilderId()
Specified by:
getActiveKnowledgeBuilderId in interface SimulationFluent

newKnowledgeBuilder

public KnowledgeBuilderSimFluent newKnowledgeBuilder()
Specified by:
newKnowledgeBuilder in interface SimulationFluent

newKnowledgeBuilder

public KnowledgeBuilderSimFluent newKnowledgeBuilder(String id)

getKnowledgeBuilder

public KnowledgeBuilderSimFluent getKnowledgeBuilder()
Specified by:
getKnowledgeBuilder in interface SimulationFluent

getKnowledgeBuilder

public KnowledgeBuilderSimFluent getKnowledgeBuilder(String id)
Specified by:
getKnowledgeBuilder in interface SimulationFluent

getActiveKnowledgeBaseId

public String getActiveKnowledgeBaseId()
Specified by:
getActiveKnowledgeBaseId in interface SimulationFluent

newKnowledgeBase

public KnowledgeBaseSimFluent newKnowledgeBase()
Specified by:
newKnowledgeBase in interface SimulationFluent

newKnowledgeBase

public KnowledgeBaseSimFluent newKnowledgeBase(String id)

getKnowledgeBase

public KnowledgeBaseSimFluent getKnowledgeBase()
Specified by:
getKnowledgeBase in interface SimulationFluent

getKnowledgeBase

public KnowledgeBaseSimFluent getKnowledgeBase(String id)
Specified by:
getKnowledgeBase in interface SimulationFluent

assureActiveKnowledgeBase

public void assureActiveKnowledgeBase()

getActiveKnowledgeSessionId

public String getActiveKnowledgeSessionId()
Specified by:
getActiveKnowledgeSessionId in interface SimulationFluent

newStatefulKnowledgeSession

public StatefulKnowledgeSessionSimFluent newStatefulKnowledgeSession()
Specified by:
newStatefulKnowledgeSession in interface SimulationFluent

newStatefulKnowledgeSession

public StatefulKnowledgeSessionSimFluent newStatefulKnowledgeSession(String id)

getStatefulKnowledgeSession

public StatefulKnowledgeSessionSimFluent getStatefulKnowledgeSession()
Specified by:
getStatefulKnowledgeSession in interface SimulationFluent

getStatefulKnowledgeSession

public StatefulKnowledgeSessionSimFluent getStatefulKnowledgeSession(String id)
Specified by:
getStatefulKnowledgeSession in interface SimulationFluent

getSimulation

public org.drools.simulation.Simulation getSimulation()
Description copied from interface: SimulationFluent
Gets the Simulation

Specified by:
getSimulation in interface SimulationFluent
Returns:
never null

runSimulation

public void runSimulation()
Description copied from interface: SimulationFluent
Run the Simulation with startTimeMillis now.

Specified by:
runSimulation in interface SimulationFluent

runSimulation

public void runSimulation(long startTimeMillis)
Description copied from interface: SimulationFluent
Run the Simulation.

Specified by:
runSimulation in interface SimulationFluent
Parameters:
startTimeMillis - never null


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.