Commit a82a331c authored by Carlos Galindo's avatar Carlos Galindo
Browse files

Documentation and minor changes

* Some assertions changed to Illegal{State,Argument}Exception.
parent ee10b5bd
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -6,6 +6,7 @@ import org.jgrapht.nio.DefaultAttribute;

import java.util.Map;

/** Represents a data dependency in an object-oriented SDG or PDG. */
public class FlowDependencyArc extends Arc {
    public FlowDependencyArc() {
        super();
+2 −0
Original line number Diff line number Diff line
@@ -6,6 +6,8 @@ import org.jgrapht.nio.DefaultAttribute;

import java.util.Map;

/** Represents a data dependency between objects or between a field
 *  and its parent in an object oriented SDG or PDG. */
public class ObjectFlowDependencyArc extends Arc {
    public ObjectFlowDependencyArc() {
        super();
+3 −0
Original line number Diff line number Diff line
@@ -6,6 +6,9 @@ import org.jgrapht.nio.DefaultAttribute;

import java.util.Map;

/** Replaces control dependencies that were used to generate a tree-like
 *  structure in the PDG and SDG. Some examples include the connection
 *  of actual/formal-in/out and object trees. They should always be traversed. */
public class StructuralArc extends Arc {
    @Override
    public Map<String, Attribute> getDotAttributes() {
+3 −0
Original line number Diff line number Diff line
@@ -6,6 +6,9 @@ import org.jgrapht.nio.DefaultAttribute;

import java.util.Map;

/** Represents a dependence where the source completely defines
 *  the target. This is used when the type of an object or just
 *  its existence is required, but not any specific field. */
public class TotalDefinitionDependenceArc extends Arc {
    @Override
    public Map<String, Attribute> getDotAttributes() {
+3 −0
Original line number Diff line number Diff line
@@ -38,6 +38,9 @@ public class ParameterInOutArc extends InterproceduralArc {
        return graphNode;
    }

    /** Represents an input/output arc with an additional traversal restriction.
     *  It merges the functions of an interprocedural input/output arc and an
     *  object-flow arc. */
    public static class ObjectFlow extends ParameterInOutArc {
        @Override
        public boolean isObjectFlow() {
Loading