org.drools.simulation.impl
Class Simulator

java.lang.Object
  extended by org.drools.simulation.impl.Simulator
All Implemented Interfaces:
org.drools.command.Context, org.drools.command.GetDefaultValue, org.drools.command.World

public class Simulator
extends Object
implements org.drools.command.World, org.drools.command.GetDefaultValue


Nested Class Summary
static interface Simulator.CommandExecutionHandler
           
static class Simulator.DefaultCommandExecutionHandler
           
 
Constructor Summary
Simulator(org.drools.simulation.Simulation simulation, long startTime)
           
 
Method Summary
 org.drools.simulation.SimulationStep executeNextStep()
           
 Object get(String identifier)
           
 org.drools.command.Context getContext(String identifier)
           
 org.drools.command.World getContextManager()
           
 Object getLastReturnValue()
           
 String getName()
           
 Object getObject()
           
 org.drools.command.Context getRootContext()
           
 org.drools.simulation.Simulation getSimulation()
           
 void remove(String identifier)
           
 void run()
           
 void set(String identifier, Object value)
           
 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(org.drools.simulation.Simulation simulation,
                 long startTime)
Method Detail

run

public void run()

executeNextStep

public org.drools.simulation.SimulationStep 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.World

getRootContext

public org.drools.command.Context getRootContext()

getSimulation

public org.drools.simulation.Simulation getSimulation()

getLastReturnValue

public Object getLastReturnValue()

getObject

public Object getObject()
Specified by:
getObject in interface org.drools.command.GetDefaultValue

getContextManager

public org.drools.command.World getContextManager()
Specified by:
getContextManager in interface org.drools.command.Context

getName

public String getName()
Specified by:
getName in interface org.drools.command.Context

get

public Object get(String identifier)
Specified by:
get in interface org.drools.command.Context

set

public void set(String identifier,
                Object value)
Specified by:
set in interface org.drools.command.Context

remove

public void remove(String identifier)
Specified by:
remove in interface org.drools.command.Context


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