public class ContextImplementation.OutputImpl extends Object implements Output
Constructor and Description |
---|
OutputImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addOutputExtension(OutputExtensionModel outputExtension)
adds output extension to desired outputPlugin
adds output extension to desired outputPlugin, so that the output-plugin can start and stop the outputExtension
task as needed.
|
void |
addOutputPlugin(OutputPluginModel outputPlugin)
adds outputPlugin to outputPluginList, starts a new thread for the outputPlugin, and stores the future object in a HashMap
|
<T,X> List<CompletableFuture<X>> |
generateAllOutputExtensions(OutputPluginModel<T,X> outputPlugin,
T t,
EventModel event)
starts every associated OutputExtension
|
List<Identification> |
getAssociatedOutputExtension(OutputPluginModel<?,?> outputPlugin)
returns all the associated OutputExtensions
|
Identification |
getManagerIdentification()
returns the ID of the Manager
|
void |
removeOutputExtension(OutputExtensionModel outputExtension)
removes the output-extension of id: extensionId from outputPluginList
|
void |
removeOutputPlugin(OutputPluginModel outputPlugin)
removes the OutputPlugin and stops the thread
|
public OutputImpl()
public void addOutputExtension(OutputExtensionModel outputExtension) throws IllegalIDException
addOutputExtension
in interface Output
outputExtension
- the outputExtension to be addedIllegalIDException
- not yet implementedpublic void removeOutputExtension(OutputExtensionModel outputExtension)
removeOutputExtension
in interface Output
outputExtension
- the OutputExtension to removepublic void addOutputPlugin(OutputPluginModel outputPlugin) throws IllegalIDException
addOutputPlugin
in interface Output
outputPlugin
- OutputPlugin to addIllegalIDException
- not yet implementedpublic void removeOutputPlugin(OutputPluginModel outputPlugin)
removeOutputPlugin
in interface Output
outputPlugin
- the outputPlugin to removepublic List<Identification> getAssociatedOutputExtension(OutputPluginModel<?,?> outputPlugin)
getAssociatedOutputExtension
in interface Output
outputPlugin
- the OutputPlugin to search forpublic <T,X> List<CompletableFuture<X>> generateAllOutputExtensions(OutputPluginModel<T,X> outputPlugin, T t, EventModel event)
generateAllOutputExtensions
in interface Output
T
- the type of the argumentX
- the return typeoutputPlugin
- the OutputPlugin to generate the Data fort
- the argument or nullevent
- the Event to generate for @return a List of Future-Objectspublic Identification getManagerIdentification()
getManagerIdentification
in interface Output
Copyright © 2016. All rights reserved.