edu.nrao.sss.model.project.scan
Class TippingScanValidator

java.lang.Object
  extended by edu.nrao.sss.validation.AbstractValidator<S>
      extended by edu.nrao.sss.model.project.scan.TippingScanValidator
All Implemented Interfaces:
Validator

public class TippingScanValidator
extends AbstractValidator<S>

A validator of tipping scans.

Validations Performed for All Purposes

  1. All validations performed by SimpleScanValidator.
  2. Scan has at least one position.
  3. Contained positions are valid.1
1The particular validations performed depend on the validator used by this one to operate on those contained positions.

Version Info:

$Revision: 1971 $
$Date: 2009-02-13 09:30:50 -0700 (Fri, 13 Feb 2009) $
$Author: btruitt $

Since:
2007-02-13
Author:
David M. Harland

Field Summary
 
Fields inherited from class edu.nrao.sss.validation.AbstractValidator
failFast, failures, manager, purpose, target
 
Constructor Summary
TippingScanValidator()
          Creates a new instance.
 
Method Summary
 Validator getTippingPositionValidator()
          Returns a validator for delay settings.
protected  List<Validation<TippingScan>> makeValidationList(ValidationPurpose purpose)
           
 void setTippingPositionValidator(Validator newValidator)
          Sets the validator to use for the tipping positions of the target scan.
protected  void validate()
           
 
Methods inherited from class edu.nrao.sss.validation.AbstractValidator
getName, getPurpose, getTarget, setManager, stopTestingAfterFirstFailure, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TippingScanValidator

public TippingScanValidator()
Creates a new instance.

Method Detail

makeValidationList

protected List<Validation<TippingScan>> makeValidationList(ValidationPurpose purpose)

validate

protected void validate()
Overrides:
validate in class AbstractValidator<TippingScan>

setTippingPositionValidator

public void setTippingPositionValidator(Validator newValidator)
Sets the validator to use for the tipping positions of the target scan. It is acceptable to use a null parameter, in which case this validator will contact its manager for a tipping-position validator or create one itself.

Parameters:
newValidator - a validator to use on the tipping positions of this validator's target scan.

getTippingPositionValidator

public Validator getTippingPositionValidator()
Returns a validator for delay settings.



Copyright © 2009. All Rights Reserved.