ist.palcom.hgraph
Class AbstractInvokator

java.lang.Object
  extended by ist.palcom.hgraph.AbstractInvokator
All Implemented Interfaces:
Invokator
Direct Known Subclasses:
CompassInvokator, GenericInvokator, HgraphManagerInvokator

public abstract class AbstractInvokator
extends java.lang.Object
implements Invokator

Abstractinvokator implements the basic functionality of Invokator, such as invoke and log


Field Summary
static int DEFAULT_NUM_LOGS
           
 
Constructor Summary
AbstractInvokator(IHgraphNode node, java.lang.String name, java.lang.String description)
           
AbstractInvokator(int numLogs, IHgraphNode node, java.lang.String name, java.lang.String description)
           
 
Method Summary
 java.lang.String getDescription()
           
 Value[] getLast(int num)
           
 java.util.Iterator getLogIterator()
           
 java.lang.String getName()
           
 void invoke(java.lang.String command, Path path, java.lang.String returnCommand, Value value)
           
protected  void log(long time, HgraphEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_NUM_LOGS

public static final int DEFAULT_NUM_LOGS
See Also:
Constant Field Values
Constructor Detail

AbstractInvokator

public AbstractInvokator(IHgraphNode node,
                         java.lang.String name,
                         java.lang.String description)

AbstractInvokator

public AbstractInvokator(int numLogs,
                         IHgraphNode node,
                         java.lang.String name,
                         java.lang.String description)
Method Detail

invoke

public void invoke(java.lang.String command,
                   Path path,
                   java.lang.String returnCommand,
                   Value value)

log

protected void log(long time,
                   HgraphEvent event)

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface Invokator
Returns:
A description of the purpose of the invokator in prose. It should as a minimum describe the commands the invokator is able to invoke

getName

public java.lang.String getName()
Specified by:
getName in interface Invokator
Returns:
The name of the invokator.

getLast

public Value[] getLast(int num)
Specified by:
getLast in interface Invokator

getLogIterator

public java.util.Iterator getLogIterator()
Specified by:
getLogIterator in interface Invokator