extension/src/main/java/org/justinnk/masonssa/extension/ssa/AttributeDependencyGraph.java
/**
   * Remove an action from all dependency relations.
   *
   * @param action The action that should be removed.
   */
Remove an action from all dependency relations.
@param action The action that should be removed.
Remove an action from all dependency relations . @param action The action that should be removed .
public void RemoveDependencies(Action action) {
    /* Get the owners of the attributes that this action depends on */
    HashMap<Agent, HashSet<String>> attributeOwners = dependsOn.get(action);
    if (attributeOwners != null) {
      for (Agent agent : attributeOwners.keySet()) {
        /* Get the attributes this action depends on */
        HashSet<String> attributes = dependsOn.get(action).get(agent);
        if (attributes != null) {
          /* Remove the action from the attribute dependency */
          for (String attribute : attributes) {
            dependents.get(agent).get(attribute).remove(action);
          }
        }
      }
    }
    /* Also remove the action from dependsOn */
    dependsOn.remove(action);
  }
public void RemoveDependencies ( Action action ) { /* Get the owners of the attributes that this action depends on */ HashMap < Agent , HashSet < String > > attributeOwners = dependsOn . get ( action ) ; if ( attributeOwners != null ) { for ( Agent agent : attributeOwners . keySet ( ) ) { /* Get the attributes this action depends on */ HashSet < String > attributes = dependsOn . get ( action ) . get ( agent ) ; if ( attributes != null ) { /* Remove the action from the attribute dependency */ for ( String attribute : attributes ) { dependents . get ( agent ) . get ( attribute ) . remove ( action ) ; } } } } /* Also remove the action from dependsOn */ dependsOn . remove ( action ) ; }
Remove an action from all dependency relations.
Remove an action from all dependency relations .