public final class PoshEngine extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PoshEngine.EvaluationResult
How did evaluation of plan ended?
|
static class |
PoshEngine.EvaluationResultInfo
Container holding two information about result of last evaluation of the
plan and how was stack changed.
|
| Modifier | Constructor and Description |
|---|---|
|
PoshEngine(int engineId,
PoshPlan plan,
ITimer timer,
Logger log)
Create new engine of Yaposh plan and
reset() it. |
protected |
PoshEngine(PoshPlan plan) |
protected |
PoshEngine(PoshPlan plan,
ITimer timer) |
protected |
PoshEngine(PoshPlan plan,
ITimer timer,
Logger log) |
| Modifier and Type | Method and Description |
|---|---|
PoshEngine.EvaluationResultInfo |
evaluatePlan(IWorkExecutor workExecuter)
Do one step of the plan, pick a drive from DC and execute the element at
the top of its stack.
|
Logger |
getLog()
Get logger of engine
|
String |
getName()
Get name of engine, retrieved from doc node or from DC name.
|
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.
|
void |
reset()
Reset the posh engine, all stacks and variables will be reseted.
|
protected PoshEngine(PoshPlan plan)
public PoshEngine(int engineId,
PoshPlan plan,
@Deprecated
ITimer timer,
Logger log)
reset() it.engineId - Id of engine, it is used for construction of path in EngineLog.pathReached(cz.cuni.amis.pogamut.sposh.elements.LapPath), it is used as i of the plan.plan - Plan to be executed.timer - Timer used by the enginelog - Logger for logging the execution of the enginepublic final void reset()
public PoshEngine.EvaluationResultInfo evaluatePlan(IWorkExecutor workExecuter)
workExecuter - Executor used to execute primitives.public Logger getLog()
public final PoshPlan getPlan()
public final String getPoshPlan()
public String getName()
Copyright © 2018 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All rights reserved.