Exemple #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;
 }
Exemple #2
0
 private AvailableNode createNewAvailableNode(int startTime, Node previous, Node next) {
   AvailableNode n = (AvailableNode) availableNodeCache.getObject();
   n.setTimeAndNeighbors(startTime, previous, next);
   return n;
 }
Exemple #3
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;
 }