@Test public void testBasic() throws SchedulerException { Model mo = new DefaultModel(); Mapping map = mo.getMapping(); Node n1 = mo.newNode(); map.addOfflineNode(n1); ReconfigurationProblem rp = new DefaultReconfigurationProblemBuilder(mo).build(); BootableNode na = (BootableNode) rp.getNodeAction(n1); Assert.assertEquals(na.getNode(), n1); }
@Override public Node getNode() { return node; }
BootableNode implements NodeTransition { @Override public Node getNode() { return node; } }
BootableNode implements NodeTransition { @Override public Node getNode() { return node; } BootableNode(ReconfigurationProblem rp, Node nId); }
BootableNode implements NodeTransition { @Override public Node getNode() { return node; } BootableNode(ReconfigurationProblem rp, Node nId); @Override boolean insertActions(Solution s, ReconfigurationPlan plan); @Override String toString(); @Override IntVar getStart(); @Override IntVar getEnd(); @Override IntVar getDuration(); @Override Node getNode(); @Override BoolVar getState(); @Override IntVar getHostingStart(); @Override IntVar getHostingEnd(); @Override NodeState getSourceState(); }
BootableNode implements NodeTransition { @Override public Node getNode() { return node; } BootableNode(ReconfigurationProblem rp, Node nId); @Override boolean insertActions(Solution s, ReconfigurationPlan plan); @Override String toString(); @Override IntVar getStart(); @Override IntVar getEnd(); @Override IntVar getDuration(); @Override Node getNode(); @Override BoolVar getState(); @Override IntVar getHostingStart(); @Override IntVar getHostingEnd(); @Override NodeState getSourceState(); static final String PREFIX; }