cz.cuni.amis.pogamut.sposh.engine
Class PoshEngine

Package class diagram package PoshEngine
java.lang.Object
  extended by cz.cuni.amis.pogamut.sposh.engine.PoshEngine

public class PoshEngine
extends Object

This class is responsible for executing the valid posh plan.

Author:
Honza

Nested Class Summary
static class PoshEngine.EvaluationResult
           
static class PoshEngine.EvaluationResultInfo
           
 
Field Summary
protected  Logger log
           
protected  PoshPlan plan
           
protected  ITimer timer
           
 
Constructor Summary
PoshEngine(PoshPlan plan)
           
PoshEngine(PoshPlan plan, ITimer timer)
           
PoshEngine(PoshPlan plan, ITimer timer, Logger log)
           
 
Method Summary
 PoshEngine.EvaluationResultInfo evaluatePlan(IWorkExecutor workExecuter)
           
 Logger getLog()
           
 PoshPlan getPlan()
          Get plan of this engine (serialize the parsed plane and return it).
 String getPoshPlan()
          Convert posh tree into posh plan (textual representation) and return it.
 String getState()
          Return serialized state of the engine.
 void reset()
          Reset the posh engine, all stacks and variables will be reseted.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

plan

protected PoshPlan plan

timer

protected ITimer timer

log

protected Logger log
Constructor Detail

PoshEngine

public PoshEngine(PoshPlan plan)

PoshEngine

public PoshEngine(PoshPlan plan,
                  ITimer timer)

PoshEngine

public PoshEngine(PoshPlan plan,
                  ITimer timer,
                  Logger log)
Method Detail

reset

public final void reset()
Reset the posh engine, all stacks and variables will be reseted. Use this to return engine to former state, it had when first initialized.


evaluatePlan

public PoshEngine.EvaluationResultInfo evaluatePlan(IWorkExecutor workExecuter)

getLog

public Logger getLog()

getPlan

public final PoshPlan getPlan()
Get plan of this engine (serialize the parsed plane and return it). DO NOT MODIFY ANYTHING IN RETURNED PLAN!

Returns:

getPoshPlan

public final String getPoshPlan()
Convert posh tree into posh plan (textual representation) and return it.

Returns:
Textual representation of the posh tree.

getState

public String getState()
Return serialized state of the engine.

Returns:


Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.