2626import de .learnlib .algorithms .adt .config .LeafSplitters ;
2727import de .learnlib .algorithms .adt .util .ADTUtil ;
2828import de .learnlib .api .oracle .SymbolQueryOracle ;
29- import net .automatalib .commons .util .Triple ;
3029import net .automatalib .words .Word ;
3130
3231/**
@@ -215,10 +214,10 @@ public ADTNode<S, I, O> splitLeaf(final ADTNode<S, I, O> nodeToSplit,
215214 * @param s2
216215 * second node
217216 *
218- * @return A {@link Triple } containing the lowest common {@link ADTNode}, the output determining the subtree of the
219- * first node and the outuput determining the subtree of the second node
217+ * @return A {@link LCAInfo } containing the lowest common {@link ADTNode}, the output determining the subtree of the
218+ * first node and the output determining the subtree of the second node
220219 */
221- public Triple < ADTNode < S , I , O >, O , O > findLCA (final ADTNode <S , I , O > s1 , final ADTNode <S , I , O > s2 ) {
220+ public LCAInfo < S , I , O > findLCA (final ADTNode <S , I , O > s1 , final ADTNode <S , I , O > s2 ) {
222221
223222 final Map <ADTNode <S , I , O >, ADTNode <S , I , O >> s1ParentsToS1 = new HashMap <>();
224223
@@ -243,7 +242,7 @@ public Triple<ADTNode<S, I, O>, O, O> findLCA(final ADTNode<S, I, O> s1, final A
243242 final O s1Out = ADTUtil .getOutputForSuccessor (lca , s1ParentsToS1 .get (lca ));
244243 final O s2Out = ADTUtil .getOutputForSuccessor (lca , s2Iter );
245244
246- return new Triple <>(lca , s1Out , s2Out );
245+ return new LCAInfo <>(lca , s1Out , s2Out );
247246 }
248247
249248 s2Iter = s2Iter .getParent ();
@@ -255,4 +254,16 @@ public Triple<ADTNode<S, I, O>, O, O> findLCA(final ADTNode<S, I, O> s1, final A
255254 public void setLeafSplitter (final LeafSplitter leafSplitter ) {
256255 this .leafSplitter = leafSplitter ;
257256 }
257+
258+ public static class LCAInfo <S , I , O > {
259+ public final ADTNode <S , I , O > adtNode ;
260+ public final O firstOutput ;
261+ public final O secondOutput ;
262+
263+ LCAInfo (ADTNode <S , I , O > adtNode , O firstOutput , O secondOutput ) {
264+ this .adtNode = adtNode ;
265+ this .firstOutput = firstOutput ;
266+ this .secondOutput = secondOutput ;
267+ }
268+ }
258269}
0 commit comments