public abstract class FsmStructureListener
extends java.lang.Object
implements java.util.Observer
PostFsmActionListener class is a base class for the listener objects which realize callback to hook FSM structure profile related actions. To hook execution just before a FSM action, the callback object should be defined as follows, and set to RTObject through appropriate callback set function.
class MyListener extnds FsmStructureListener {
public String m_name;
public MyListener(final String name) {
m_name = name;
}
public void operator()(FsmStructure pprof) {
System.out.println("Listner name: " + m_name);
};
};
The listener class defined above is set to RTObject as follows.
protected ReturnCode_t onInitialize() {
addFsmStructureListener(SET_FSM_STRUCTURE,
new MyListener("set structure listener"));
:
:
};
The first argument "SET_FSM_STRUCTURE" specifies callback hook
point, and the following values are available. Not all the
callback points are implemented. It depends on the FSM
implementations.
| Constructor and Description |
|---|
FsmStructureListener() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
operator(FsmStructure fstruct)
Virtual Callback function
|
void |
update(java.util.Observable o,
java.lang.Object obj) |
public void update(java.util.Observable o,
java.lang.Object obj)
update in interface java.util.Observerpublic abstract void operator(FsmStructure fstruct)
This is a the Callback function for FsmStructureListener.