edu.nrao.sss.model.project
Class SchedulingBlockValidator

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

public class SchedulingBlockValidator
extends AbstractValidator<SchedulingBlock>

A validator of scheduling blocks.

Validations Performed for All Purposes

  1. Short name and/or long name was set.
  2. Scheduling block has at least one scan.
  3. Scan sequence is valid.1
1The particular validations performed depend on the validator used by this one to operate on the target's scan sequence.

Version Info:

$Revision: 2205 $
$Date: 2009-04-16 12:29:48 -0600 (Thu, 16 Apr 2009) $
$Author: btruitt $

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

Field Summary
 
Fields inherited from class edu.nrao.sss.validation.AbstractValidator
failFast, failures, manager, purpose, target
 
Constructor Summary
SchedulingBlockValidator()
          Creates a new instance.
 
Method Summary
 Validator getScanLoopValidator()
          Returns a validator for program blocks.
protected  List<Validation<SchedulingBlock>> makeValidationList(ValidationPurpose purpose)
           
 void setScanLoopValidator(ScanLoopValidator scanLoopValidator)
           
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

SchedulingBlockValidator

public SchedulingBlockValidator()
Creates a new instance.

Method Detail

setScanLoopValidator

public void setScanLoopValidator(ScanLoopValidator scanLoopValidator)

makeValidationList

protected List<Validation<SchedulingBlock>> makeValidationList(ValidationPurpose purpose)
Specified by:
makeValidationList in class AbstractValidator<SchedulingBlock>

validate

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

getScanLoopValidator

public Validator getScanLoopValidator()
Returns a validator for program blocks.



Copyright © 2009. All Rights Reserved.