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

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

public class ReleasedWhenReadyValidator
extends java.lang.Object
implements Validator

Validator for the constraint that aircraft may not be released from the spot until they are ready at the spot.

Author:
William Hawkins

Constructor Summary
ReleasedWhenReadyValidator()
           
 
Method Summary
 boolean validate(java.util.ArrayList<Aircraft> seq)
          Validates that aircraft are not released from the spot until they are ready at the spot.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReleasedWhenReadyValidator

public ReleasedWhenReadyValidator()
Method Detail

validate

public boolean validate(java.util.ArrayList<Aircraft> seq)
Validates that aircraft are not released from the spot until they are ready at the spot.

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