Commit b3fa15c9 authored by Sarah Grebing's avatar Sarah Grebing

tree structure for scripttrees interim state

parent 73513b9a
Pipeline #23400 failed with stages
......@@ -334,6 +334,7 @@ public class ProofTree extends BorderPane {
}
}
}
treeProof.refresh();
treeScript.refresh();
}
......
package edu.kit.iti.formal.psdbg.gui.controls.ScriptTree;
import lombok.Getter;
import lombok.Setter;
import java.util.List;
public class AbstractTreeNode {
@Getter @Setter
private AbstractTreeNode parent;
@Getter @Setter
private List<AbstractTreeNode> children;
}
package edu.kit.iti.formal.psdbg.gui.controls.ScriptTree;
import de.uka.ilkd.key.proof.Node;
import edu.kit.iti.formal.psdbg.gui.controls.ScriptTree.AbstractTreeNode;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
@RequiredArgsConstructor
public class BranchLabelNode extends AbstractTreeNode {
@Getter
private final Node keyBranchNode;
@Getter
private final String labelName;
}
package edu.kit.iti.formal.psdbg.gui.controls.ScriptTree;
import edu.kit.iti.formal.psdbg.gui.controls.ScriptTree.AbstractTreeNode;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
@RequiredArgsConstructor
public class DummyGoalNode extends AbstractTreeNode {
@Getter
private boolean closedGoal;
}
package edu.kit.iti.formal.psdbg.gui.controls;
package edu.kit.iti.formal.psdbg.gui.controls.ScriptTree;
import de.uka.ilkd.key.proof.Node;
import edu.kit.iti.formal.psdbg.gui.controls.ScriptTree.AbstractTreeNode;
import edu.kit.iti.formal.psdbg.interpreter.data.KeyData;
import edu.kit.iti.formal.psdbg.interpreter.dbg.PTreeNode;
import lombok.Getter;
......@@ -12,13 +13,10 @@ import lombok.Setter;
* The scriptTreeNodes is the model calls for TreeNodes
*/
@RequiredArgsConstructor
public class ScriptTreeNode {
public class ScriptTreeNode extends AbstractTreeNode {
@Getter
private final PTreeNode<KeyData> scriptState;
@Getter @Setter
private Node keyNode;
}
......@@ -3,6 +3,8 @@ package edu.kit.iti.formal.psdbg.gui.controls;
import com.google.common.graph.Graph;
import com.google.common.graph.GraphBuilder;
import de.uka.ilkd.key.proof.Node;
import edu.kit.iti.formal.psdbg.gui.controls.ScriptTree.AbstractTreeNode;
import edu.kit.iti.formal.psdbg.gui.controls.ScriptTree.ScriptTreeNode;
import edu.kit.iti.formal.psdbg.interpreter.data.KeyData;
import edu.kit.iti.formal.psdbg.interpreter.dbg.PTreeNode;
......@@ -10,7 +12,7 @@ import edu.kit.iti.formal.psdbg.interpreter.dbg.PTreeNode;
public class ScriptTreeGraph {
private ScriptTreeNode rootNode;
private final Graph<ScriptTreeNode> graph =
private final Graph<AbstractTreeNode> graph =
GraphBuilder.directed().allowsSelfLoops(false).build();
public void createGraph(PTreeNode<KeyData> rootPTreeNode, Node root) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment