Package de.dlr.proseo.model.joborder
Class Conf
java.lang.Object
de.dlr.proseo.model.joborder.Conf
Representation of the Ipf_Conf Job Order element
For details see Generic IPF Interface Specification issue 1 revision 8 -
03/08/2009 MMFI-GSEG-EOPG-TN-07-0003
- Author:
- Ernst Melchinger
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThrown when a request to a unique named processing parameter is executed and there is more than one parameter with the given name. -
Constructor Summary
ConstructorsConstructorDescriptionConf()No-argument constructor, initializes the configuration file names and the dynamic processing parametersConf(String processorName, String version, String stdoutLogLevel, String stderrLogLevel, String test, String breakpointEnable, String processingStation, String acquisitionStation) Constructor with arguments for all scalar attributes -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildXML(Document doc, Element parentElement, JobOrderVersion jobOrderVersion, Boolean prosEOAttributes) Add contents of this to XML node parentElement.Gets the Acquisition_Station elementGets the Breakpoint_Enable elementGets the Config_File_Name values for the Config_Files elementGets the Processing_Parameter values for the Dynamic_Processing_Parameters elementGets the Processing_Parameter values for the given key (ignoring case)Gets the Processing_Station elementGets the Processor_Name elementGets the Sensing_Time elementGets the Stderr_Log_Level elementGets the Stdout_Log_Level elementgetTest()Gets the Test elementGets the unique Processing_parameter for the given key (ignoring case)Gets the Version elementvoidRead info from XML sub treevoidsetAcquisitionStation(String acquisitionStation) Sets the Acquisition_Station elementvoidsetBreakpointEnable(String breakpointEnable) Sets the Breakpoint_Enable elementvoidsetConfigFileNames(List<String> configFileNames) Sets the Config_File_Name values for the Config_Files elementvoidsetDynamicProcessingParameters(List<ProcessingParameter> dynamicProcessingParameters) Sets the Processing_Parameter values for the Dynamic_Processing_Parameters elementvoidsetProcessingParameterByName(String name, String value) Sets the unique Processing_parameter for the given key (ignoring case) to the given value (parameter will be created, if necessary)voidsetProcessingStation(String processingStation) Sets the Processing_Station elementvoidsetProcessorName(String processorName) Sets the Processor_Name elementvoidsetSensingTime(SensingTime sensingTime) Sets the Sensing_Time elementvoidsetStderrLogLevel(String stderrLogLevel) Sets the Stderr_Log_Level elementvoidsetStdoutLogLevel(String stdoutLogLevel) Sets the Stdout_Log_Level elementvoidSets the Test elementvoidsetVersion(String version) Sets the Version element
-
Constructor Details
-
Conf
public Conf()No-argument constructor, initializes the configuration file names and the dynamic processing parameters -
Conf
public Conf(String processorName, String version, String stdoutLogLevel, String stderrLogLevel, String test, String breakpointEnable, String processingStation, String acquisitionStation) Constructor with arguments for all scalar attributes- Parameters:
processorName- the processor name to setversion- the version to setstdoutLogLevel- the log level for stdout to setstderrLogLevel- the log level for stderr to settest- the test flag to set ("true" or "false")breakpointEnable- the breakpoint enablement flag to set ("true" or "false")processingStation- the processing station to setacquisitionStation- the acquisition station to set
-
-
Method Details
-
getProcessorName
Gets the Processor_Name element- Returns:
- the processor name
-
setProcessorName
Sets the Processor_Name element- Parameters:
processorName- the processor name to set
-
getVersion
Gets the Version element- Returns:
- the version
-
setVersion
Sets the Version element- Parameters:
version- the version to set
-
getStdoutLogLevel
Gets the Stdout_Log_Level element- Returns:
- the log level for stdout
-
setStdoutLogLevel
Sets the Stdout_Log_Level element- Parameters:
stdoutLogLevel- the log level for stdout to set
-
getStderrLogLevel
Gets the Stderr_Log_Level element- Returns:
- the log level for stderr
-
setStderrLogLevel
Sets the Stderr_Log_Level element- Parameters:
stderrLogLevel- the log level for stderr to set
-
getTest
Gets the Test element- Returns:
- the test flag
-
setTest
Sets the Test element- Parameters:
test- the test flag to set ("true" or "false")
-
getBreakpointEnable
Gets the Breakpoint_Enable element- Returns:
- the breakpoint enablement flag
-
setBreakpointEnable
Sets the Breakpoint_Enable element- Parameters:
breakpointEnable- the breakpoint enablement flag to set ("true" or "false")
-
getProcessingStation
Gets the Processing_Station element- Returns:
- the processing station
-
setProcessingStation
Sets the Processing_Station element- Parameters:
processingStation- the processing station to set
-
getAcquisitionStation
Gets the Acquisition_Station element- Returns:
- the acquisition station
-
setAcquisitionStation
Sets the Acquisition_Station element- Parameters:
acquisitionStation- the acquisition station to set
-
getSensingTime
Gets the Sensing_Time element- Returns:
- the sensing time
-
setSensingTime
Sets the Sensing_Time element- Parameters:
sensingTime- the sensing time to set
-
getConfigFileNames
Gets the Config_File_Name values for the Config_Files element- Returns:
- the configuration file names
-
setConfigFileNames
Sets the Config_File_Name values for the Config_Files element- Parameters:
configFileNames- the configuration file names to set
-
getDynamicProcessingParameters
Gets the Processing_Parameter values for the Dynamic_Processing_Parameters element- Returns:
- the dynamic processing parameters
-
setDynamicProcessingParameters
Sets the Processing_Parameter values for the Dynamic_Processing_Parameters element- Parameters:
dynamicProcessingParameters- the dynamic processing parameters to set
-
getProcessingParametersByName
Gets the Processing_Parameter values for the given key (ignoring case)- Parameters:
name- the key to search for- Returns:
- a list of processing parameters with the given key
-
getUniqueProcessingParameterByName
public ProcessingParameter getUniqueProcessingParameterByName(String name) throws Conf.NonUniqueResultException Gets the unique Processing_parameter for the given key (ignoring case)- Parameters:
name- the key to search for- Returns:
- the single processing parameter matching the key, or null if no such parameter exists
- Throws:
Conf.NonUniqueResultException- if more than one parameter with the given name exists
-
setProcessingParameterByName
public void setProcessingParameterByName(String name, String value) throws Conf.NonUniqueResultException Sets the unique Processing_parameter for the given key (ignoring case) to the given value (parameter will be created, if necessary)- Parameters:
name- the key of the parameter to setvalue- the new parameter value- Throws:
Conf.NonUniqueResultException- if more than one parameter with the given name exists
-
buildXML
public void buildXML(Document doc, Element parentElement, JobOrderVersion jobOrderVersion, Boolean prosEOAttributes) Add contents of this to XML node parentElement. Use doc to create elements- Parameters:
doc- the Document to useparentElement- the node to add this as child tojobOrderVersion- the Job Order file specification version to applyprosEOAttributes- if true, write attributes of prosEO specific data
-
read
Read info from XML sub tree- Parameters:
thisNode- XML node containing information
-