The Meta-Environment API

toolbus.atom.msg
Class SndMsg

java.lang.Object
  extended by toolbus.process.ProcessExpression
      extended by toolbus.atom.Atom
          extended by toolbus.atom.msg.MsgAtom
              extended by toolbus.atom.msg.SndMsg
All Implemented Interfaces:
StateElement

public class SndMsg
extends MsgAtom


Field Summary
private  int index
           
 
Fields inherited from class toolbus.atom.msg.MsgAtom
msg
 
Fields inherited from class toolbus.atom.Atom
externalNameAsReceivedByTool
 
Fields inherited from class toolbus.process.ProcessExpression
posInfo, tbfactory
 
Constructor Summary
SndMsg(aterm.ATerm msg, TBTermFactory tbfactory, PositionInformation posInfo)
           
 
Method Summary
 ProcessExpression copy()
           
 ProcessInstance[] debugExecute()
          Executes the state element in debug mode.
 boolean execute()
          Execute this StateElement
private  boolean matchesPartner(RecMsg recMsg)
           
 
Methods inherited from class toolbus.atom.Atom
activate, compile, computeFirst, contains, copyAtomAttributes, destroy, getAtomArgValue, getAtoms, getDelay, getEnv, getProcess, getTests, getTimeout, getToolBus, gotoNextStateAndActivate, gotoNextStateAndActivate, isEnabled, replaceFormals, setAbsoluteDelay, setAbsoluteTimeout, setAtomArgs, setDelay, setEnv, setTest, setTimeout, toATerm, toString
 
Methods inherited from class toolbus.process.ProcessExpression
addToFirst, addToFollow, getFirst, getFollow, getPosInfo, setFirst, setFollow
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface toolbus.StateElement
getFollow, getPosInfo
 

Field Detail

index

private int index
Constructor Detail

SndMsg

public SndMsg(aterm.ATerm msg,
              TBTermFactory tbfactory,
              PositionInformation posInfo)
Method Detail

copy

public ProcessExpression copy()
Specified by:
copy in class ProcessExpression

matchesPartner

private boolean matchesPartner(RecMsg recMsg)

execute

public boolean execute()
                throws ToolBusException
Description copied from interface: StateElement
Execute this StateElement

Returns:
true if execution was completed.
Throws:
ToolBusException

debugExecute

public ProcessInstance[] debugExecute()
                               throws ToolBusException
Description copied from interface: StateElement
Executes the state element in debug mode.

Specified by:
debugExecute in interface StateElement
Overrides:
debugExecute in class Atom
Returns:
The collection of partners that cooperated with the execution of the state element. Null if the execution did not complete.
Throws:
ToolBusException

The Meta-Environment API