Skip to content

Commit

Permalink
Javadocs
Browse files Browse the repository at this point in the history
  • Loading branch information
FliegendeWurst committed Jan 11, 2024
1 parent c795ff8 commit bfcdbca
Showing 1 changed file with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/* This file is part of KeY - https://key-project.org
* KeY is licensed under the GNU General Public License Version 2
* SPDX-License-Identifier: GPL-2.0-only */
package org.key_project.slicing.graph;

import de.uka.ilkd.key.proof.Node;
Expand All @@ -9,15 +12,34 @@
* @author Arne Keller
*/
public class AnnotatedShortenedEdge extends AnnotatedEdge {
/**
* The initial node in this shortened chain.
*/
private Node initial;
/**
* The last node in this shortened chain.
*/
private Node last;

/**
* Create a new shortened edge.
*
* @param initial the initial node for this shortened chain
* @param last the last node of this shortened chain
* @param consumesInput whether the input graph node is consumed
*/
public AnnotatedShortenedEdge(Node initial, Node last, boolean consumesInput) {
super(last, consumesInput);
this.initial = initial;
this.last = last;
}

/**
* Get the proper label for this edge.
* Will list both the initial and the last node's ruleapp.
*
* @return label for this edge (to use in DOT export)
*/
public String getEdgeLabel() {
var sb = new StringBuilder();
RuleApp ruleApp1 = initial.getAppliedRuleApp();
Expand Down

0 comments on commit bfcdbca

Please sign in to comment.