protected SlewNode newSlewNode( SlewRequirement slew, boolean mustRampToEnd, int startTime, Node previous, Node next) { SlewNode s = (SlewNode) slewNodeCache.getObject(); s.setTimeAndNeighbors(startTime, previous, next); s.setSlew(slew); s.setMustRampToEnd(mustRampToEnd); return s; }
private AvailableNode createNewAvailableNode(int startTime, Node previous, Node next) { AvailableNode n = (AvailableNode) availableNodeCache.getObject(); n.setTimeAndNeighbors(startTime, previous, next); return n; }
protected SSRNode newSSRNode(int capacity, int startTime, Node previous, Node next) { SSRNode n = (SSRNode) SSRNodeCache.getObject(); n.setTimeAndNeighbors(startTime, previous, next); n.setCapacity(capacity); return n; }