edu.mit.ll.group43.surfaceoptimization.validator
Class CPSValidator

java.lang.Object
  extended by edu.mit.ll.group43.surfaceoptimization.validator.CPSValidator
All Implemented Interfaces:
Validator

public class CPSValidator
extends java.lang.Object
implements Validator

Validates that the given spot release sequence does not violate the CPS constraint.

Author:
William Hawkins

Method Summary
 boolean validate(java.util.ArrayList<Aircraft> seq)
          Validates that the given sequence does not violate this Validator's CPS constraint.
 boolean validate(java.util.ArrayList<Aircraft> seq, Aircraft start)
           
static boolean validate(java.util.ArrayList<Aircraft> sequence, Aircraft start, int cps)
           
static boolean validate(java.util.ArrayList<Aircraft> sequence, int cps)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

validate

public static boolean validate(java.util.ArrayList<Aircraft> sequence,
                               int cps)

validate

public static boolean validate(java.util.ArrayList<Aircraft> sequence,
                               Aircraft start,
                               int cps)

validate

public boolean validate(java.util.ArrayList<Aircraft> seq)
Validates that the given sequence does not violate this Validator's CPS constraint.

Specified by:
validate in interface Validator
Parameters:
seq - Sequence to be validated
Returns:
True if the sequence is valid, false otherwise

validate

public boolean validate(java.util.ArrayList<Aircraft> seq,
                        Aircraft start)