edu.mit.ll.group43.surfaceoptimization.dp.factory.cost
Class CostStrategyUtils

java.lang.Object
  extended by edu.mit.ll.group43.surfaceoptimization.dp.factory.cost.CostStrategyUtils

public class CostStrategyUtils
extends java.lang.Object

A collection of utility methods for cost strategies.

Author:
William Hawkins

Constructor Summary
CostStrategyUtils()
           
 
Method Summary
static java.util.ArrayList<Aircraft> cloneSequence(java.util.ArrayList<Aircraft> sequence)
          Returns an ArrayList of clones of the aircraft in the given sequence.
static Aircraft lastTakeOff(java.util.ArrayList<Aircraft> sequence)
          Returns the aircraft that takes off last in the given sequence, which does not need to be sorted by takeoff times.
static int safePrevTimeBound(java.util.ArrayList<Aircraft> releaseSequence, Aircraft current, int cps)
          Calculates the earliest that the current aircraft should be released from the spot without violating constrained position shifting for the given release sequence.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CostStrategyUtils

public CostStrategyUtils()
Method Detail

lastTakeOff

public static Aircraft lastTakeOff(java.util.ArrayList<Aircraft> sequence)
Returns the aircraft that takes off last in the given sequence, which does not need to be sorted by takeoff times.

Parameters:
sequence -
Returns:

cloneSequence

public static java.util.ArrayList<Aircraft> cloneSequence(java.util.ArrayList<Aircraft> sequence)
Returns an ArrayList of clones of the aircraft in the given sequence.

Parameters:
sequence -
Returns:

safePrevTimeBound

public static int safePrevTimeBound(java.util.ArrayList<Aircraft> releaseSequence,
                                    Aircraft current,
                                    int cps)
Calculates the earliest that the current aircraft should be released from the spot without violating constrained position shifting for the given release sequence.

Parameters:
releaseSequence -
current -
cps -
Returns: