org.drools.simulation.impl
Class Simulator

java.lang.Object
  extended by org.drools.simulation.impl.Simulator
All Implemented Interfaces:
org.drools.command.ContextManager

public class Simulator
extends Object
implements org.drools.command.ContextManager


Nested Class Summary
static interface Simulator.CommandExecutionHandler
           
static class Simulator.DefaultCommandExecutionHandler
           
 
Constructor Summary
Simulator(Simulation simulation, long startTime)
           
 
Method Summary
 Step executeNextStep()
           
 org.drools.command.Context getContext(String identifier)
           
 org.drools.command.Context getDefaultContext()
           
 Simulation getSimulation()
           
 void run()
           
 void setCommandExecutionHandler(Simulator.CommandExecutionHandler executionHandler)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Simulator

public Simulator(Simulation simulation,
                 long startTime)
Method Detail

run

public void run()

executeNextStep

public Step executeNextStep()

setCommandExecutionHandler

public void setCommandExecutionHandler(Simulator.CommandExecutionHandler executionHandler)

getContext

public org.drools.command.Context getContext(String identifier)
Specified by:
getContext in interface org.drools.command.ContextManager

getDefaultContext

public org.drools.command.Context getDefaultContext()
Specified by:
getDefaultContext in interface org.drools.command.ContextManager

getSimulation

public Simulation getSimulation()


Copyright © 2001-2011 JBoss Inc.. All Rights Reserved.