@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); }
Allocate extends Action implements VMEvent { @Override public Object visit(ActionVisitor v) { return v.visit(this); } }
Allocate extends Action implements VMEvent { @Override public Object visit(ActionVisitor v) { return v.visit(this); } Allocate(VM vm, Node on, String rc, int amount, int start, int end); }
Allocate extends Action implements VMEvent { @Override public Object visit(ActionVisitor v) { return v.visit(this); } Allocate(VM vm, Node on, String rc, int amount, int start, int end); Node getHost(); @Override VM getVM(); String getResourceId(); int getAmount(); @Override boolean applyAction(Model i); @Override String pretty(); @Override boolean equals(Object o); @Override int hashCode(); @Override Object visit(ActionVisitor v); }
Allocate extends Action implements VMEvent { @Override public Object visit(ActionVisitor v) { return v.visit(this); } Allocate(VM vm, Node on, String rc, int amount, int start, int end); Node getHost(); @Override VM getVM(); String getResourceId(); int getAmount(); @Override boolean applyAction(Model i); @Override String pretty(); @Override boolean equals(Object o); @Override int hashCode(); @Override Object visit(ActionVisitor v);  }