uk.ac.ncl.cs.instantsoap.commandlineprocessor.applicationSpec
Class Application

java.lang.Object
  extended by uk.ac.ncl.cs.instantsoap.commandlineprocessor.applicationSpec.Application

public class Application
extends Object

A template, describing a command.

A template is a specification of a command-line. It includes a spec of the inputs and outputs, the command-line to fill out, and any relevant meta-data.

Author:
Cheng-Yang(Louis) Tang, Matthew Pocock

Constructor Summary
Application()
          Create a new application with inputs and outputs set to empty maps, and other properties set to null.
Application(MetaData applicationMetaData, CommandFormat commandFormat, CommandLine<VariableExpression> commandLine, Set<Input> inputs, Set<Output> outputs)
          Create a new application with all properties set to the given values.
 
Method Summary
 void addInput(Input input)
          Add a single input to the inputs.
 void addOutput(Output output)
          Add an output to the outputs.
 boolean equals(Object o)
           
 MetaData getApplicationMetaData()
          Get the application meta-data.
 CommandFormat getCommandFormat()
          Get the application command format.
 CommandLine<VariableExpression> getCommandLine()
          Get the commandline pattern that must be filled out to execute this application.
 Set<Input> getInputs()
          Get the inputs for this application.
 Set<Output> getOutputs()
          Get the outputs for this application.
 int hashCode()
           
 void removeInput(Input input)
          Remove a single input from the inputs.
 void removeOutput(Output output)
          Remove an output from the inputs.
 void setApplicationMetaData(MetaData applicationMetaData)
          Set the application meta-data.
 void setCommandFormat(CommandFormat commandFormat)
          Set the application command format.
 void setCommandLine(CommandLine<VariableExpression> commandLine)
          Set the commandline pattern that must be filled out to execute this application.
 void setInputs(Set<Input> inputs)
          Set the inputs of this application.
 void setOutputs(Set<Output> outputs)
          Set the outputs fo this application.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Application

public Application()
Create a new application with inputs and outputs set to empty maps, and other properties set to null.


Application

public Application(MetaData applicationMetaData,
                   CommandFormat commandFormat,
                   CommandLine<VariableExpression> commandLine,
                   Set<Input> inputs,
                   Set<Output> outputs)
Create a new application with all properties set to the given values.

Parameters:
applicationMetaData - the MetaData describing the application
commandFormat - the CommandFormat for this application
commandLine - the CommandLine pattern for this application
inputs - a Set of Input structures describing application inputs
outputs - a Set of Output structures describing application outputs
Method Detail

getApplicationMetaData

public MetaData getApplicationMetaData()
Get the application meta-data.

Returns:
the application MetaData

setApplicationMetaData

public void setApplicationMetaData(MetaData applicationMetaData)
Set the application meta-data.

Parameters:
applicationMetaData - the new application MetaData

getCommandFormat

public CommandFormat getCommandFormat()
Get the application command format.

Returns:
the CommandFormat

setCommandFormat

public void setCommandFormat(CommandFormat commandFormat)
Set the application command format.

Parameters:
commandFormat - the CommandFormat

getCommandLine

public CommandLine<VariableExpression> getCommandLine()
Get the commandline pattern that must be filled out to execute this application.

Returns:
the CommandLine pattern

setCommandLine

public void setCommandLine(CommandLine<VariableExpression> commandLine)
Set the commandline pattern that must be filled out to execute this application.

Parameters:
commandLine - the new CommandLine pattern to use

getInputs

public Set<Input> getInputs()
Get the inputs for this application.

Returns:
a Set containing all the Input parameters

setInputs

public void setInputs(Set<Input> inputs)
Set the inputs of this application.

Parameters:
the - new Set containing all the Input parameters

addInput

public void addInput(Input input)
Add a single input to the inputs.

Parameters:
input - the Input to add

removeInput

public void removeInput(Input input)
Remove a single input from the inputs.

Parameters:
input - the Input to remove

getOutputs

public Set<Output> getOutputs()
Get the outputs for this application.

Returns:
a Set containing all the Output results

setOutputs

public void setOutputs(Set<Output> outputs)
Set the outputs fo this application.

Parameters:
the - new Set containing all the Output results

addOutput

public void addOutput(Output output)
Add an output to the outputs.

Parameters:
output - the Output to add

removeOutput

public void removeOutput(Output output)
Remove an output from the inputs.

Parameters:
output - the Output to remove

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2006-2008. All Rights Reserved.