Commit b3fa15c9 authored by Sarah Grebing's avatar Sarah Grebing
Browse files

tree structure for scripttrees interim state

parent 73513b9a
Pipeline #23400 failed with stages
...@@ -334,6 +334,7 @@ public class ProofTree extends BorderPane { ...@@ -334,6 +334,7 @@ public class ProofTree extends BorderPane {
} }
} }
} }
treeProof.refresh(); treeProof.refresh();
treeScript.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 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.data.KeyData;
import edu.kit.iti.formal.psdbg.interpreter.dbg.PTreeNode; import edu.kit.iti.formal.psdbg.interpreter.dbg.PTreeNode;
import lombok.Getter; import lombok.Getter;
...@@ -12,13 +13,10 @@ import lombok.Setter; ...@@ -12,13 +13,10 @@ import lombok.Setter;
* The scriptTreeNodes is the model calls for TreeNodes * The scriptTreeNodes is the model calls for TreeNodes
*/ */
@RequiredArgsConstructor @RequiredArgsConstructor
public class ScriptTreeNode { public class ScriptTreeNode extends AbstractTreeNode {
@Getter @Getter
private final PTreeNode<KeyData> scriptState; private final PTreeNode<KeyData> scriptState;
@Getter @Setter @Getter @Setter
private Node keyNode; private Node keyNode;
} }
...@@ -3,6 +3,8 @@ package edu.kit.iti.formal.psdbg.gui.controls; ...@@ -3,6 +3,8 @@ package edu.kit.iti.formal.psdbg.gui.controls;
import com.google.common.graph.Graph; import com.google.common.graph.Graph;
import com.google.common.graph.GraphBuilder; import com.google.common.graph.GraphBuilder;
import de.uka.ilkd.key.proof.Node; 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.data.KeyData;
import edu.kit.iti.formal.psdbg.interpreter.dbg.PTreeNode; import edu.kit.iti.formal.psdbg.interpreter.dbg.PTreeNode;
...@@ -10,7 +12,7 @@ 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 { public class ScriptTreeGraph {
private ScriptTreeNode rootNode; private ScriptTreeNode rootNode;
private final Graph<ScriptTreeNode> graph = private final Graph<AbstractTreeNode> graph =
GraphBuilder.directed().allowsSelfLoops(false).build(); GraphBuilder.directed().allowsSelfLoops(false).build();
public void createGraph(PTreeNode<KeyData> rootPTreeNode, Node root) { 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