コード例 #1
0
 public Interdependence getDependenceAt(int idx) {
   Interdependence intdep = (Interdependence) interdependencies.get(idx);
   // just checking -- may remove if not needed
   if (intdep.getPolicyPosition() != idx) {
     System.err.println("error: policy position and index do not match");
     System.exit(0);
   }
   return intdep;
 }
コード例 #2
0
 public void print() {
   System.out.println("size: " + interdependencies.size());
   for (Interdependence ind : interdependencies) {
     System.out.println(ind.toString());
   }
 }