extension/src/main/java/org/justinnk/masonssa/extension/ssa/AttributeDependencyGraph.java
/**
   * Remove an agents actions and attributes from all dependency relations. This can be used when
   * removing an agent from the simulation.
   *
   * @param owner The agent which should be removed from all dependency relations.
   */
Remove an agents actions and attributes from all dependency relations. This can be used when
removing an agent from the simulation.

@param owner The agent which should be removed from all dependency relations.
Remove an agents actions and attributes from all dependency relations . This can be used when removing an agent from the simulation . @param owner The agent which should be removed from all dependency relations .
public void RemoveDependencies(Agent owner) {
    /* First, remove all actions of this agent from the dependencies */
    for (Action action : owner.getActions()) {
      RemoveDependencies(action);
    }
    /* Next, remove all attributes of that agent from the dependencies */
    for (Action act : dependsOn.keySet()) {
      if (dependsOn.get(act).get(owner) != null) {
        dependsOn.get(act).get(owner).removeAll(GetAttributes(owner));
      }
    }
    /* Then remove the agent itself */
    dependents.remove(owner);
  }
public void RemoveDependencies ( Agent owner ) { /* First, remove all actions of this agent from the dependencies */ for ( Action action : owner . getActions ( ) ) { RemoveDependencies ( action ) ; } /* Next, remove all attributes of that agent from the dependencies */ for ( Action act : dependsOn . keySet ( ) ) { if ( dependsOn . get ( act ) . get ( owner ) != null ) { dependsOn . get ( act ) . get ( owner ) . removeAll ( GetAttributes ( owner ) ) ; } } /* Then remove the agent itself */ dependents . remove ( owner ) ; }
Remove an agents actions and attributes from all dependency relations.
Remove an agents actions and attributes from all dependency relations .