cz.cuni.amis.pogamut.sposh.executor
Interface IWorkExecutor

Package class diagram package IWorkExecutor
All Known Subinterfaces:
ILogicWorkExecutor
All Known Implementing Classes:
BehaviorWorkExecutor, PrintWorkExecutor, StateWorkExecutor

public interface IWorkExecutor

Interface that is used by posh engine to execute primitives. There may be multiple ways to execute primitives, original posh is just calling methods, we may want primitives executed in phases (like INIT, RUN*, FINISH).

Author:
Honza

Method Summary
 ActionResult executeAction(String actionName, VariableContext ctx)
          Execute action and get the result.
 Object executeSense(String senseName, VariableContext ctx)
          Execute sense and get the result.
 

Method Detail

executeSense

Object executeSense(String senseName,
                    VariableContext ctx)
Execute sense and get the result.

Parameters:
senseName - name of primitive
ctx - variable context for sense containing possible parameters
Returns:
result of executed primitive

executeAction

ActionResult executeAction(String actionName,
                           VariableContext ctx)
Execute action and get the result.

Parameters:
actionName - name of primitive
ctx - variable context for action containing possible parameters
Returns:
result of executed primitive


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