|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.portlets.admin.irbootstrapperportlet.gwt.server.types.ExecutionEntity
org.gcube.portlets.admin.irbootstrapperportlet.gwt.server.types.task.AssignTaskType
public class AssignTaskType
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.gcube.portlets.admin.irbootstrapperportlet.gwt.server.types.ExecutionEntity |
|---|
ExecutionEntity.ExecutionState |
| Field Summary | |
|---|---|
protected static org.apache.log4j.Logger |
logger
Logger |
| Fields inherited from class org.gcube.portlets.admin.irbootstrapperportlet.gwt.server.types.ExecutionEntity |
|---|
entityName, execState, isGoalFulfilled, parent, scope, UID |
| Constructor Summary | |
|---|---|
AssignTaskType()
Class constructor |
|
| Method Summary | |
|---|---|
void |
cancel()
Cancels the execution of this execution entity. |
Object |
clone()
|
void |
doAssignment()
Performs the assignment that this task must execute |
EvaluationResult |
evaluate(String expression)
Evaluates the given expression on the execution tree rooted at the current object and returns a Node representing the result |
String |
execute(EntityExecutionData eed)
Executes the logic of this execution entity. |
String |
getAssignFrom()
|
String |
getAssignTo()
|
String |
getTypeName()
Returns the name of this ExecutionEntity's type |
String |
getUIDescription()
Returns a string which will be displayed in the user interface as a description for this entity. |
String |
getUserInputLabel()
|
void |
initialize(Element xml)
Initializes this object, passing the XML element that contains the assignment information |
void |
initializeWithDataInScope(org.gcube.common.core.scope.GCUBEScope scope)
Finds the DataTypes that could be possibly used as inputs for this entity as well as each sub-entity contained in it. |
AssignTaskType |
newInstance(String name)
Instantiates the execution entity type represented by this object. |
boolean |
requiresUserInput()
|
void |
setAssignFrom(String assignFrom)
|
void |
setAssignTo(String assignTo)
|
void |
setUserInputLabel(String label)
|
void |
toXML(StringBuilder output)
Outputs an XML description of the ExecutionEntity to the given
StringBuilder object. |
| Methods inherited from class org.gcube.portlets.admin.irbootstrapperportlet.gwt.server.types.ExecutionEntity |
|---|
assignRandomUID, createExecutionLog, getExecutionLogger, getExecutionState, getName, getParent, getScope, getUID, isFulfilled, setExecutionState, setIsFulfilled, setParent, setScope |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static org.apache.log4j.Logger logger
| Constructor Detail |
|---|
public AssignTaskType()
| Method Detail |
|---|
public void initialize(Element xml)
xml - the XML element describing this assignmentpublic String getAssignFrom()
public void setAssignFrom(String assignFrom)
public String getAssignTo()
public boolean requiresUserInput()
public void setAssignTo(String assignTo)
public void setUserInputLabel(String label)
public String getUserInputLabel()
public void doAssignment()
throws Exception
Exceptionpublic String execute(EntityExecutionData eed)
ExecutionEntity
execute in class ExecutionEntityeed - object containing useful data for the execution of the entitypublic void cancel()
ExecutionEntity
cancel in class ExecutionEntitypublic String getTypeName()
ExecutionEntityExecutionEntity's type
getTypeName in class ExecutionEntity
public Object clone()
throws CloneNotSupportedException
clone in class ExecutionEntityCloneNotSupportedExceptionpublic AssignTaskType newInstance(String name)
ExecutionEntity
newInstance in class ExecutionEntityname - the new instance name
public EvaluationResult evaluate(String expression)
ExecutionEntity
evaluate in interface Evaluableevaluate in class ExecutionEntityexpression - the expression to evaluate, in "a.b.c..." notation
public void initializeWithDataInScope(org.gcube.common.core.scope.GCUBEScope scope)
throws Exception
ExecutionEntity
initializeWithDataInScope in class ExecutionEntityscope - the scope in which the entity will be executed
Exceptionpublic String getUIDescription()
ExecutionEntity
getUIDescription in class ExecutionEntitypublic void toXML(StringBuilder output)
ExecutionEntityExecutionEntity to the given
StringBuilder object.
toXML in class ExecutionEntityoutput - the StringBuilder to write to
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||