gov.nasa.gsfc.drl.rtstps.core
Class Builder

java.lang.Object
  extended by gov.nasa.gsfc.drl.rtstps.core.Builder

public class Builder
extends java.lang.Object

This class creates an RT-STPS pipeline.


Nested Class Summary
(package private)  class Builder.MyErrorHandler
           
 
Field Summary
private  Configuration config
           
private  javax.xml.parsers.DocumentBuilder documentBuilder
           
private  RtStpsNodeFactory nodeFactory
           
 
Constructor Summary
Builder()
           
 
Method Summary
 FrameSynchronizer create(org.xml.sax.InputSource input)
          Create an STPS pipeline.
private  org.w3c.dom.Element createNodes(org.w3c.dom.Element root, Configuration config)
           
private  void createOutputChannels(org.w3c.dom.Element element, Configuration config)
           
private  void createPacketNodes(org.w3c.dom.Element element, Configuration config)
           
private  void createServiceNodes(org.w3c.dom.Element element, Configuration config)
           
private  void createSpacecraftMap(org.w3c.dom.Document document, Configuration config)
          Ingest all spacecrafts from the xml configuration file.
 Configuration getConfiguration()
          Get the last-used configuration.
 RtStpsNodeFactory getStpsNodeFactory()
          Get the STPS node factory.
private  void linkNodes(org.w3c.dom.Element element, Configuration config)
           
private  void populateNodeFactory()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nodeFactory

private RtStpsNodeFactory nodeFactory

documentBuilder

private javax.xml.parsers.DocumentBuilder documentBuilder

config

private Configuration config
Constructor Detail

Builder

public Builder()
        throws RtStpsException
Throws:
RtStpsException
Method Detail

getStpsNodeFactory

public final RtStpsNodeFactory getStpsNodeFactory()
Get the STPS node factory.


getConfiguration

public final Configuration getConfiguration()
Get the last-used configuration. The builder does not change the configuration until after it creates an STPS pipeline. It will be null if no configuration has ever been loaded.


create

public FrameSynchronizer create(org.xml.sax.InputSource input)
                         throws RtStpsException
Create an STPS pipeline.

Returns:
The FrameSynchronizer object.
Throws:
RtStpsException

populateNodeFactory

private void populateNodeFactory()
                          throws RtStpsException
Throws:
RtStpsException

createSpacecraftMap

private void createSpacecraftMap(org.w3c.dom.Document document,
                                 Configuration config)
                          throws RtStpsException
Ingest all spacecrafts from the xml configuration file. NOTE: this seems to ingest info and do nothing with it with no side effects. KR

Throws:
RtStpsException

createNodes

private org.w3c.dom.Element createNodes(org.w3c.dom.Element root,
                                        Configuration config)
                                 throws RtStpsException
Throws:
RtStpsException

createServiceNodes

private void createServiceNodes(org.w3c.dom.Element element,
                                Configuration config)
                         throws RtStpsException
Throws:
RtStpsException

createPacketNodes

private void createPacketNodes(org.w3c.dom.Element element,
                               Configuration config)
                        throws RtStpsException
Throws:
RtStpsException

createOutputChannels

private void createOutputChannels(org.w3c.dom.Element element,
                                  Configuration config)
                           throws RtStpsException
Throws:
RtStpsException

linkNodes

private void linkNodes(org.w3c.dom.Element element,
                       Configuration config)
                throws RtStpsException
Throws:
RtStpsException