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

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

public class SwitchingScanValidator
extends AbstractValidator<S>

A validator of switching scans.

Validations Performed for All Purposes

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

Version Info:

$Revision: 1256 $
$Date: 2008-04-29 15:55:50 -0600 (Tue, 29 Apr 2008) $
$Author: dharland $

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
SwitchingScanValidator()
          Creates a new instance.
 
Method Summary
 Validator getSwitchSettingValidator()
          Returns a validator for switch settings.
protected  List<Validation<SwitchingScan>> makeValidationList(ValidationPurpose purpose)
           
 void setSwitchSettingValidator(Validator newValidator)
          Sets the validator to use for the switch settings 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

SwitchingScanValidator

public SwitchingScanValidator()
Creates a new instance.

Method Detail

makeValidationList

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

validate

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

setSwitchSettingValidator

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

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

getSwitchSettingValidator

public Validator getSwitchSettingValidator()
Returns a validator for switch settings.



Copyright © 2009. All Rights Reserved.