Class PluginExecutionResultImpl
java.lang.Object
org.processmining.framework.plugin.impl.PluginExecutionResultImpl
- All Implemented Interfaces:
PluginExecutionResult
-
Constructor Summary
ConstructorDescriptionPluginExecutionResultImpl
(Class<?>[] returnTypes, String[] returnNames, PluginDescriptor plugin) -
Method Summary
Modifier and TypeMethodDescriptionObject[]
Returns the plugin used to generate this resultgetProvidedObjectID
(int i) Returns the ProvidedObjectID under which the object at index i is known to the framework's ProvidedObject manager<T> T
getResult
(int resultIndex) returns the result at the given index, casted to the given returntype.getResultName
(int resultIndex) this method returns the name of the result at the given index.String[]
This method returns the names of the resultsObject[]
returns the results of this plugin in an array.int
getSize()
Returns the size of this result, i.e.<T> Class<? super T>
getType
(int i) Returns the type of the object at index i, as declared by the pluginvoid
void
setProvidedObjectID
(int i, ProvidedObjectID id) Tells this result under which provided object ID the object at index i is known to the frameworkvoid
Synchronizes on any futures that might still exist in the result.
-
Constructor Details
-
PluginExecutionResultImpl
public PluginExecutionResultImpl(Class<?>[] returnTypes, String[] returnNames, PluginDescriptor plugin)
-
-
Method Details
-
getSize
public int getSize()Description copied from interface:PluginExecutionResult
Returns the size of this result, i.e. how many objects were returned by the plugin- Specified by:
getSize
in interfacePluginExecutionResult
- Returns:
-
getResult
Description copied from interface:PluginExecutionResult
returns the result at the given index, casted to the given returntype. If synchronize() was called, this method returns the actual object. Otherwise, it might return a ProMFutureon the actual object. Note that 0<= resultIndex < getSize() - Specified by:
getResult
in interfacePluginExecutionResult
- Returns:
- Throws:
ClassCastException
-
getResultName
Description copied from interface:PluginExecutionResult
this method returns the name of the result at the given index. Note that 0<= resultIndex < getSize()- Specified by:
getResultName
in interfacePluginExecutionResult
- Returns:
-
getResultNames
Description copied from interface:PluginExecutionResult
This method returns the names of the results- Specified by:
getResultNames
in interfacePluginExecutionResult
- Returns:
-
getResults
Description copied from interface:PluginExecutionResult
returns the results of this plugin in an array. If synchronize() was called, this method returns the actual objects. Otherwise, it might return ProMFutures on the actual objects (or any combination thereof).- Specified by:
getResults
in interfacePluginExecutionResult
- Returns:
-
synchronize
Description copied from interface:PluginExecutionResult
Synchronizes on any futures that might still exist in the result. If no futures exist, this method does terminate normally- Specified by:
synchronize
in interfacePluginExecutionResult
- Throws:
CancellationException
ExecutionException
InterruptedException
-
setProvidedObjectID
Description copied from interface:PluginExecutionResult
Tells this result under which provided object ID the object at index i is known to the framework- Specified by:
setProvidedObjectID
in interfacePluginExecutionResult
- Parameters:
i
- index of the objectid
- the id of the provided object refering to the objet at index i
-
getProvidedObjectID
Description copied from interface:PluginExecutionResult
Returns the ProvidedObjectID under which the object at index i is known to the framework's ProvidedObject manager- Specified by:
getProvidedObjectID
in interfacePluginExecutionResult
- Parameters:
i
- index of the object
-
setInput
-
getParameters
-
getType
Description copied from interface:PluginExecutionResult
Returns the type of the object at index i, as declared by the plugin- Specified by:
getType
in interfacePluginExecutionResult
- Returns:
-
getPlugin
Description copied from interface:PluginExecutionResult
Returns the plugin used to generate this result- Specified by:
getPlugin
in interfacePluginExecutionResult
- Returns:
-