public class Executable extends java.lang.Object implements ExecutableInterface, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EXECUTABLE
The Constant EXECUTABLE.
|
static java.lang.String |
TASKTYPE
The Constant TASKTYPE.
|
Constructor and Description |
---|
Executable(java.lang.String taskType)
Instantiates a new executable.
|
Modifier and Type | Method and Description |
---|---|
void |
addInputFile(org.shiwa.fgi.iwir.InputPort inputPort,
java.io.File inputFile)
Adds the input file.
|
void |
addOutputFile(org.shiwa.fgi.iwir.OutputPort outputPort,
java.io.File outputFile)
Adds the output file.
|
void |
addPort(java.lang.String nodeName,
java.lang.String portName)
Adds the port.
|
java.lang.String[] |
getArgs()
Gets the args.
|
java.io.File |
getOutputFileForNode(Node node)
Gets the output file for node.
|
java.util.HashMap<java.lang.String,java.lang.String> |
getPorts()
Gets the ports.
|
java.lang.String |
getPrimaryExec()
Gets the primary exec.
|
java.lang.String |
getTaskName()
Gets the task name.
|
java.lang.String |
getTaskType()
Gets the task type.
|
java.io.File |
getWorkingDir()
Gets the working dir.
|
void |
run()
Run.
|
void |
run(java.util.HashMap<Node,java.lang.Object> inputs,
java.lang.Object[] outputs)
Run.
|
void |
setArgs(java.lang.String[] args)
Sets the args.
|
void |
setPrimaryExec(java.lang.String primaryExec)
Sets the primary exec.
|
void |
setTaskName(java.lang.String taskName)
Sets the task name.
|
void |
setWorkingDir(java.io.File workingDir)
Sets the working dir.
|
public static final java.lang.String TASKTYPE
public static final java.lang.String EXECUTABLE
public Executable(java.lang.String taskType)
taskType
- the task typepublic void run()
ExecutableInterface
run
in interface ExecutableInterface
public void run(java.util.HashMap<Node,java.lang.Object> inputs, java.lang.Object[] outputs)
ExecutableInterface
run
in interface ExecutableInterface
inputs
- the input object at node mapoutputs
- the outputspublic java.lang.String getTaskType()
public void setWorkingDir(java.io.File workingDir)
workingDir
- the new working dirpublic void setArgs(java.lang.String[] args)
args
- the new argspublic java.io.File getWorkingDir()
public java.lang.String[] getArgs()
public void setPrimaryExec(java.lang.String primaryExec)
primaryExec
- the new primary execpublic java.lang.String getPrimaryExec()
public java.util.HashMap<java.lang.String,java.lang.String> getPorts()
public void addPort(java.lang.String nodeName, java.lang.String portName)
nodeName
- the node nameportName
- the port namepublic void setTaskName(java.lang.String taskName)
taskName
- the new task namepublic java.lang.String getTaskName()
public void addInputFile(org.shiwa.fgi.iwir.InputPort inputPort, java.io.File inputFile)
inputPort
- the input portinputFile
- the input filepublic java.io.File getOutputFileForNode(Node node)
node
- the nodepublic void addOutputFile(org.shiwa.fgi.iwir.OutputPort outputPort, java.io.File outputFile)
outputPort
- the output portoutputFile
- the output file