edu.nrao.sss.model.project
Class ProjectBuilder

java.lang.Object
  extended by edu.nrao.sss.model.project.ProjectBuilder

public class ProjectBuilder
extends Object

Helper for test classes; builds projects and their components.

Version Info:

$Revision: 2190 $
$Date: 2009-04-13 15:15:03 -0600 (Mon, 13 Apr 2009) $
$Author: dharland $

Since:
2006-10-09

Constructor Summary
ProjectBuilder()
           
 
Method Summary
 void buildProject(Project project)
           
 void fillProgramBlock(ProgramBlock pb, boolean makeSbs)
           
 void fillSchedulingBlock(SchedulingBlock sb, boolean makeScans)
           
 ExecutionBlock makeExecutionBlock()
           
 ProgramBlock makeProgramBlock()
           
 ProgramBlock makeProgramBlockButNotSchedulingBlocks()
           
 ProgramBlock makeProgramBlockButNotSchedulingBlocksFor(Project proj)
           
 ProgramBlock makeProgramBlockFor(Project proj)
           
 Project makeProject(TelescopeType telescope)
           
 Scan makeScanFor(SchedulingBlock schedBlock)
           
 void makeScansFor(SchedulingBlock schedBlock)
           
 SchedulingBlock makeSchedulingBlock()
           
 SchedulingBlock makeSchedulingBlockButNotScans()
           
 SchedulingBlock makeSchedulingBlockButNotScansFor(ProgramBlock progBlock)
           
 SchedulingBlock makeSchedulingBlockFor(ProgramBlock progBlock)
           
 void setComment(ProgramBlock progBlock)
          Sometimes sets comment, sometimes removes comments.
 void setComment(Project project)
          Sometimes sets comment, sometimes removes comments.
 void setComment(SchedulingBlock schedBlock)
          Sometimes sets comment, sometimes removes comments.
 void setCommentToOperator(SchedulingBlock sb)
          Sometimes sets comment, sometimes removes comments.
 void setIdentifiers(boolean setIds)
          Tells the factory methods whether or not they should set the object identifiers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectBuilder

public ProjectBuilder()
Method Detail

setIdentifiers

public void setIdentifiers(boolean setIds)
Tells the factory methods whether or not they should set the object identifiers.


makeProject

public Project makeProject(TelescopeType telescope)

buildProject

public void buildProject(Project project)

makeProgramBlockFor

public ProgramBlock makeProgramBlockFor(Project proj)

makeProgramBlockButNotSchedulingBlocksFor

public ProgramBlock makeProgramBlockButNotSchedulingBlocksFor(Project proj)

makeProgramBlock

public ProgramBlock makeProgramBlock()

makeProgramBlockButNotSchedulingBlocks

public ProgramBlock makeProgramBlockButNotSchedulingBlocks()

fillProgramBlock

public void fillProgramBlock(ProgramBlock pb,
                             boolean makeSbs)

makeSchedulingBlockFor

public SchedulingBlock makeSchedulingBlockFor(ProgramBlock progBlock)

makeSchedulingBlockButNotScansFor

public SchedulingBlock makeSchedulingBlockButNotScansFor(ProgramBlock progBlock)

makeSchedulingBlock

public SchedulingBlock makeSchedulingBlock()

makeSchedulingBlockButNotScans

public SchedulingBlock makeSchedulingBlockButNotScans()

fillSchedulingBlock

public void fillSchedulingBlock(SchedulingBlock sb,
                                boolean makeScans)

makeExecutionBlock

public ExecutionBlock makeExecutionBlock()

makeScansFor

public void makeScansFor(SchedulingBlock schedBlock)

makeScanFor

public Scan makeScanFor(SchedulingBlock schedBlock)

setComment

public void setComment(Project project)
Sometimes sets comment, sometimes removes comments.


setComment

public void setComment(ProgramBlock progBlock)
Sometimes sets comment, sometimes removes comments.


setComment

public void setComment(SchedulingBlock schedBlock)
Sometimes sets comment, sometimes removes comments.


setCommentToOperator

public void setCommentToOperator(SchedulingBlock sb)
Sometimes sets comment, sometimes removes comments.



Copyright © 2009. All Rights Reserved.