@Test public void testVisit() { ActionVisitor visitor = mock(ActionVisitor.class); a.visit(visitor); verify(visitor).visit(a); }
@Override public Object visit(ActionVisitor v) { return v.visit(this); }
AllocateEvent implements VMEvent { @Override public Object visit(ActionVisitor v) { return v.visit(this); } }
AllocateEvent implements VMEvent { @Override public Object visit(ActionVisitor v) { return v.visit(this); } AllocateEvent(VM vmId, String rcId, int amount); }
AllocateEvent implements VMEvent { @Override public Object visit(ActionVisitor v) { return v.visit(this); } AllocateEvent(VM vmId, String rcId, int amount); @Override VM getVM(); String getResourceId(); int getAmount(); @Override boolean apply(Model i); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); @Override Object visit(ActionVisitor v); }
AllocateEvent implements VMEvent { @Override public Object visit(ActionVisitor v) { return v.visit(this); } AllocateEvent(VM vmId, String rcId, int amount); @Override VM getVM(); String getResourceId(); int getAmount(); @Override boolean apply(Model i); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); @Override Object visit(ActionVisitor v);  }