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; }
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; }
private AvailableNode createNewAvailableNode(int startTime, Node previous, Node next) { AvailableNode n = (AvailableNode) availableNodeCache.getObject(); n.setTimeAndNeighbors(startTime, previous, next); return n; }
/** only call when all Nodes are no longer needed (or suffer a horrible fate) */ protected void initialize() { availableNodeCache.reinitialize(); slewNodeCache.reinitialize(); SSRNodeCache.reinitialize(); }