コード例 #1
0
 public final Map<Object, ModuleFactory> getDependencies(
     final ModuleFactory f, final NodeState state) {
   final Set<DepLink> outgoingEdges = this.graph.outgoingEdgesOf(f);
   final Map<Object, ModuleFactory> res = new HashMap<Object, ModuleFactory>(outgoingEdges.size());
   for (final DepLink l : outgoingEdges) {
     if (state == null || getState(l.getTarget()) == state) res.put(l.getDepID(), l.getTarget());
   }
   return res;
 }
コード例 #2
0
 public ModuleFactory getDependency(final ModuleFactory f, final Object id) {
   for (final DepLink l : this.graph.outgoingEdgesOf(f)) {
     if (l.getDepID().equals(id)) return l.getTarget();
   }
   return null;
 }