org.embl.ebi.escience.scufl.enactor.event
Class IterationCompletionEvent

java.lang.Object
  extended by org.embl.ebi.escience.scufl.enactor.event.WorkflowInstanceEvent
      extended by org.embl.ebi.escience.scufl.enactor.event.IterationCompletionEvent

public class IterationCompletionEvent
extends WorkflowInstanceEvent


Constructor Summary
IterationCompletionEvent(java.util.Map structureMapping, java.util.Map inputShredding, WorkflowInstance wf, Processor activeProcessor, java.util.List associatedCompletionEvents, java.util.Map inputs, java.util.Map outputs)
           
 
Method Summary
 java.lang.String findNameFromLSID(java.lang.String LSID)
          Utility method to find the input or output name for a given LSID, returns the empty string if none is found.
 java.util.List getAssociatedCompletionEvents()
          Returns a List containing all the ProcessCompletionEvents that occured during the iterations
 java.util.Map getInputShredding()
          This is the equivalent for the inputs, the keys are the LSIDs of the overall input objects prior to iteration, the values are the sets of child objects which those have been decomposed into in order to get the correct cardinality types into the next operation
 java.util.Map getOverallInputs()
          Returns a map of port name -> datathing corresponding to the overall inputs and outputs of the process which has been iterated over.
 java.util.Map getOverallOutputs()
          As for the getOverallInputs but returns the final result map for this processor
 Processor getProcessor()
           
 java.util.Map getStructureMapping()
          Return a map containing information about the collections built by this iteration.
 java.lang.String toString()
          Print a summary of the information contained within this event
 
Methods inherited from class org.embl.ebi.escience.scufl.enactor.event.WorkflowInstanceEvent
getWorkflowInstance
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IterationCompletionEvent

public IterationCompletionEvent(java.util.Map structureMapping,
                                java.util.Map inputShredding,
                                WorkflowInstance wf,
                                Processor activeProcessor,
                                java.util.List associatedCompletionEvents,
                                java.util.Map inputs,
                                java.util.Map outputs)
Method Detail

getAssociatedCompletionEvents

public java.util.List getAssociatedCompletionEvents()
Returns a List containing all the ProcessCompletionEvents that occured during the iterations


getStructureMapping

public java.util.Map getStructureMapping()
Return a map containing information about the collections built by this iteration. The keys in the map are the top level LSID values for the collections produced by the iterations (one collection and LSID per output), the values for these keys are sets, each set contains the LSID values of the top level individual result objects. The sets and their keys can be interpreted as 'key is constructed from the members of this set'. The LSIDs in the set will also be refered to as the object of statements generated from the ProcessCompletionEvent objects


getInputShredding

public java.util.Map getInputShredding()
This is the equivalent for the inputs, the keys are the LSIDs of the overall input objects prior to iteration, the values are the sets of child objects which those have been decomposed into in order to get the correct cardinality types into the next operation


getProcessor

public Processor getProcessor()

getOverallInputs

public java.util.Map getOverallInputs()
Returns a map of port name -> datathing corresponding to the overall inputs and outputs of the process which has been iterated over. These input values are the inputs as fed to the process before any iteration or composition has occured


getOverallOutputs

public java.util.Map getOverallOutputs()
As for the getOverallInputs but returns the final result map for this processor


toString

public java.lang.String toString()
Print a summary of the information contained within this event

Overrides:
toString in class java.lang.Object

findNameFromLSID

public java.lang.String findNameFromLSID(java.lang.String LSID)
Utility method to find the input or output name for a given LSID, returns the empty string if none is found. This only searches within the scope of this event!