| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectProtocolLearner.PassiveLearner
public class PassiveLearner
A passive synthesis protocol learner that builds Finite State Machine from a set of protocol messages traces
| Nested Class Summary | |
|---|---|
|  class | PassiveLearner.Loop | 
| Constructor Summary | |
|---|---|
| PassiveLearner() | |
| Method Summary | |
|---|---|
|  boolean | checkRootsChildrenColors(FSAutomaton inputAutomaton)Checks whether the the children of the root of the tree have associated colors. | 
|  FSAutomaton | constructAutomaton(java.util.ArrayList<MessageTrace> traces,
                   AbstractionFunct input,
                   AbstractionFunct output)Constructs a FSM from a sample of message traces and input/output abstraction function | 
|  int | findStateHeights(FSAutomaton inputAutomaton,
                 int statePointer)A recursive function that sets a height for each state in the FSA. | 
|  java.util.HashMap<java.lang.Integer,java.lang.Integer> | findStatesParent(FSAutomaton inputAutomaton,
                 int statePointer)Function traverses the FSA and stores the parent ID for each child. | 
|  FSAutomaton | minimizeAutomaton(FSAutomaton inputAutomaton,
                  java.util.ArrayList<MessageTrace> traces,
                  AbstractionFunct input,
                  AbstractionFunct output)Minimizes a finite state automaton by reducing similar states And restores the loops that were initially removed from the automaton | 
|  void | setTraceLoops(MessageTrace trace,
              AbstractionFunct inab)Identifies loops in the trace | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public PassiveLearner()
| Method Detail | 
|---|
public FSAutomaton constructAutomaton(java.util.ArrayList<MessageTrace> traces,
                                      AbstractionFunct input,
                                      AbstractionFunct output)
traces - ArrayList of message tracesinput - Input abstraction functionoutput - Output abstraction function
public FSAutomaton minimizeAutomaton(FSAutomaton inputAutomaton,
                                     java.util.ArrayList<MessageTrace> traces,
                                     AbstractionFunct input,
                                     AbstractionFunct output)
inputAutomaton - Finite state automatontraces - A collection of protocol traces that were used to construct the automatoninput - An abstraction function for the input messagesoutput - An abstraction function for the output messages
public boolean checkRootsChildrenColors(FSAutomaton inputAutomaton)
inputAutomaton - FS automaton
public int findStateHeights(FSAutomaton inputAutomaton,
                            int statePointer)
inputAutomaton - A finite state automatonstatePointer - Index of a state for which height is calculated.
public java.util.HashMap<java.lang.Integer,java.lang.Integer> findStatesParent(FSAutomaton inputAutomaton,
                                                                               int statePointer)
inputAtomaton - input FAS
public void setTraceLoops(MessageTrace trace,
                          AbstractionFunct inab)
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||