@Test public void testRemove() { TransitionFactory amf = TransitionFactory.newBundle(); MockVMBuilder vmb = new MockVMBuilder(); amf.remove(vmb); for (VMState src : vmb.getSourceStates()) { Assert.assertNull(amf.getBuilder(src, vmb.getDestinationState())); } MockNodeBuilder nb = new MockNodeBuilder(); amf.remove(nb); Assert.assertNull(amf.getBuilder(nb.getSourceState())); }
public boolean remove(VMTransitionBuilder b) { Map<VMState, VMTransitionBuilder> m = vmAMB2.get(b.getDestinationState()); for (VMState src : b.getSourceStates()) { m.remove(src); } return true; }
TransitionFactory { public boolean remove(VMTransitionBuilder b) { Map<VMState, VMTransitionBuilder> m = vmAMB2.get(b.getDestinationState()); for (VMState src : b.getSourceStates()) { m.remove(src); } return true; } }
TransitionFactory { public boolean remove(VMTransitionBuilder b) { Map<VMState, VMTransitionBuilder> m = vmAMB2.get(b.getDestinationState()); for (VMState src : b.getSourceStates()) { m.remove(src); } return true; } TransitionFactory(); }
TransitionFactory { public boolean remove(VMTransitionBuilder b) { Map<VMState, VMTransitionBuilder> m = vmAMB2.get(b.getDestinationState()); for (VMState src : b.getSourceStates()) { m.remove(src); } return true; } TransitionFactory(); void add(VMTransitionBuilder b); boolean remove(VMTransitionBuilder b); boolean remove(NodeTransitionBuilder b); void add(NodeTransitionBuilder b); VMTransitionBuilder getBuilder(VMState srcState, VMState dstState); NodeTransitionBuilder getBuilder(NodeState srcState); static TransitionFactory newBundle(); @Override String toString(); }
TransitionFactory { public boolean remove(VMTransitionBuilder b) { Map<VMState, VMTransitionBuilder> m = vmAMB2.get(b.getDestinationState()); for (VMState src : b.getSourceStates()) { m.remove(src); } return true; } TransitionFactory(); void add(VMTransitionBuilder b); boolean remove(VMTransitionBuilder b); boolean remove(NodeTransitionBuilder b); void add(NodeTransitionBuilder b); VMTransitionBuilder getBuilder(VMState srcState, VMState dstState); NodeTransitionBuilder getBuilder(NodeState srcState); static TransitionFactory newBundle(); @Override String toString();  }