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