public abstract class FsmProfileListener
extends java.lang.Object
implements java.util.Observer
FsmProfileListener class is a base class for the listener objects which realize callback to hook FSM Profile related actions. To hook execution just before a FSM profile action, the callback object should be defined as follows, and set to RTObject through appropriate callback set function.
Class MyListeneri extends public FsmProfileListener {
public String m_name;
public MyListener(final String name){
m_namei = name;
}
public void operator()(final FsmProfile fsmprof) {
System.out.println("Listner name: " + m_name);
};
};
The listener class defined above is set to RTObject as follows.
protected ReturnCode_t onInitialize() {
addFsmProfileListener(SET_FSM_PROFILE,
new MyListener("prof listener"));
:
};
The first argument "SET_FSM_PROFILE" specifies callback hook
point, and the following values are available. Not all the
callback points are implemented. It depends on the FSM service
implementations.
| Constructor and Description |
|---|
FsmProfileListener() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
operator(FsmProfile fsmprof)
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(FsmProfile fsmprof)
This is a the Callback function for FsmProfileListener.