public class TrianaRun
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected org.trianacode.enactment.TrianaRun.ExecCable[] |
incables |
protected org.trianacode.enactment.TrianaRun.ExecCable[] |
outcables |
protected Scheduler |
scheduler |
protected org.trianacode.enactment.TrianaRun.ExecServer |
server |
protected Task |
task |
protected TaskGraph |
taskgraph |
Constructor and Description |
---|
TrianaRun(TaskGraph taskgraph)
Constructs a TrianaExec to execute a clone of the specified taskgraph.
|
TrianaRun(Tool tool)
Constructs a TrianaExec to execute a clone of the specified tool.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Clean up after a run execution.
|
java.lang.String |
getDummyToolName() |
int |
getInputNodeCount() |
int |
getOutputNodeCount() |
SchedulerInterface |
getScheduler() |
Task |
getTask() |
TaskGraph |
getTaskGraph() |
protected void |
init(Tool tool)
Initializes the triana exec
|
boolean |
isDataSent(int count) |
boolean |
isFinished() |
boolean |
isOutputReady() |
boolean |
isOutputReady(int count) |
java.lang.Object |
receiveOutputData(int count) |
java.lang.Object |
receiveOutputData(int count,
boolean unpack) |
void |
runTaskGraph()
Runs the unconnected tasks with the taskgraph
|
void |
sendInputData(int count,
java.lang.Object obj)
Sends output data using the specified input node
|
void |
setDummyToolName(java.lang.String dummyname)
Sets the dummy tool name
|
protected java.lang.Object |
unpackResult(java.lang.Object result) |
protected Task task
protected TaskGraph taskgraph
protected org.trianacode.enactment.TrianaRun.ExecServer server
protected Scheduler scheduler
protected org.trianacode.enactment.TrianaRun.ExecCable[] incables
protected org.trianacode.enactment.TrianaRun.ExecCable[] outcables
public TrianaRun(TaskGraph taskgraph) throws TaskGraphException
TaskGraphException
public TrianaRun(Tool tool) throws TaskGraphException
TaskGraphException
public SchedulerInterface getScheduler()
protected void init(Tool tool) throws TaskGraphException
TaskGraphException
public TaskGraph getTaskGraph()
public Task getTask()
public java.lang.String getDummyToolName()
public void setDummyToolName(java.lang.String dummyname)
public void runTaskGraph() throws SchedulerException
SchedulerException
public boolean isFinished()
public int getInputNodeCount()
public boolean isDataSent(int count)
public void sendInputData(int count, java.lang.Object obj)
public int getOutputNodeCount()
public boolean isOutputReady(int count)
public java.lang.Object receiveOutputData(int count)
public java.lang.Object receiveOutputData(int count, boolean unpack)
public boolean isOutputReady()
protected java.lang.Object unpackResult(java.lang.Object result)
public void dispose()