public final class ADTUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static <S,I,O> ADTNode<S,I,O> |
buildADSFromObservation(Word<I> input,
Word<O> output,
S finalState)
Build a single trace ADS from the given information.
|
static <S,I,O> Pair<ADTNode<S,I,O>,ADTNode<S,I,O>> |
buildADSFromTrace(MealyMachine<S,I,?,O> automaton,
Word<I> trace,
S state) |
static <S,I,O> ADTNode<S,I,O> |
buildFromADS(ADSNode<S,I,O> node)
|
static <S,I,O> Pair<Word<I>,Word<O>> |
buildTraceForNode(ADTNode<S,I,O> node) |
static <S,I,O> Set<ADTNode<S,I,O>> |
collectADSNodes(ADTNode<S,I,O> root) |
static <S,I,O> Set<ADTNode<S,I,O>> |
collectDirectSubADSs(ADTNode<S,I,O> node) |
static <S,I,O> Set<ADTNode<S,I,O>> |
collectLeaves(ADTNode<S,I,O> root) |
static <S,I,O> Set<ADTNode<S,I,O>> |
collectResetNodes(ADTNode<S,I,O> root) |
static <S,I,O> int |
computeEffectiveResets(ADTNode<S,I,O> adt)
Computes how often reset nodes are encountered when traversing from the given node to the leaves of the induced
subtree of the given node.
|
static <S,I,O> O |
getOutputForSuccessor(ADTNode<S,I,O> node,
ADTNode<S,I,O> successor) |
static <S,I,O> ADTNode<S,I,O> |
getStartOfADS(ADTNode<S,I,O> node) |
static <S,I,O> boolean |
isLeafNode(ADTNode<S,I,O> node) |
static <S,I,O> boolean |
isResetNode(ADTNode<S,I,O> node) |
static <S,I,O> boolean |
isSymbolNode(ADTNode<S,I,O> node) |
static <S,I,O> boolean |
mergeADS(ADTNode<S,I,O> parent,
ADTNode<S,I,O> child)
Tries to merge the given (single trace) ADSs (which only contains one leaf) into the given parent ADSs.
|
public static <S,I,O> boolean isSymbolNode(ADTNode<S,I,O> node)
public static <S,I,O> boolean isResetNode(ADTNode<S,I,O> node)
public static <S,I,O> Set<ADTNode<S,I,O>> collectDirectSubADSs(ADTNode<S,I,O> node)
public static <S,I,O> Pair<Word<I>,Word<O>> buildTraceForNode(ADTNode<S,I,O> node)
public static <S,I,O> O getOutputForSuccessor(ADTNode<S,I,O> node, ADTNode<S,I,O> successor)
public static <S,I,O> ADTNode<S,I,O> buildFromADS(ADSNode<S,I,O> node)
S - (hypothesis) state typeI - input alphabet typeO - output alphabet typenode - the root node of the ADSADTNode interfacepublic static <S,I,O> int computeEffectiveResets(ADTNode<S,I,O> adt)
S - (hypothesis) state typeI - input alphabet typeO - output alphabet typeadt - the node whose subtree should be analyzedpublic static <S,I,O> Pair<ADTNode<S,I,O>,ADTNode<S,I,O>> buildADSFromTrace(MealyMachine<S,I,?,O> automaton, Word<I> trace, S state)
public static <S,I,O> ADTNode<S,I,O> buildADSFromObservation(Word<I> input, Word<O> output, S finalState)
S - (hypothesis) state typeI - input alphabet typeO - output alphabet typeinput - the input sequence of the traceoutput - the output sequence of the tracefinalState - the hypothesis state that should be referenced in the leaf of the ADSpublic static <S,I,O> boolean mergeADS(ADTNode<S,I,O> parent, ADTNode<S,I,O> child)
S - (hypothesis) state typeI - input alphabet typeO - output alphabet typeparent - the parent ADS in which the given child ADS should be merged intochild - the (single trace) ADS which should be incorporated into the parent ADS.true if ADSs could be merged, false otherwisepublic static <S,I,O> boolean isLeafNode(ADTNode<S,I,O> node)
Copyright © 2020. All rights reserved.