Gridarta Editor
net.sf.gridarta.plugin.PluginExecutor< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R > Class Template Reference

Allows execution of Plugins. More...

+ Collaboration diagram for net.sf.gridarta.plugin.PluginExecutor< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:

Public Member Functions

BshThread< G, A, R > doRunPlugin (@NotNull final Plugin< G, A, R > plugin, @NotNull final ConsoleInterface console, @NotNull final Map< String, Object > parameters)
 Runs a plugin model. More...
 
int executePlugin (@NotNull final String plugin, @NotNull final Iterable< String > parameters)
 Executes an editor plugin. More...
 
 PluginExecutor (@NotNull final PluginModel< G, A, R > pluginModel, @NotNull final PluginParameters pluginParameters)
 Creates a new instance. More...
 

Private Attributes

final PluginModel< G, A, R > pluginModel
 The PluginModel to execute. More...
 
final PluginParameters pluginParameters
 The parameters to pass to the plugin. More...
 

Detailed Description

Allows execution of Plugins.

Author
Andreas Kirschbaum

Definition at line 47 of file PluginExecutor.java.

Constructor & Destructor Documentation

◆ PluginExecutor()

net.sf.gridarta.plugin.PluginExecutor< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.PluginExecutor ( @NotNull final PluginModel< G, A, R >  pluginModel,
@NotNull final PluginParameters  pluginParameters 
)

Creates a new instance.

Parameters
pluginModelthe plugin model to execute
pluginParametersthe parameters to pass to the plugin

Definition at line 66 of file PluginExecutor.java.

Member Function Documentation

◆ doRunPlugin()

BshThread<G, A, R> net.sf.gridarta.plugin.PluginExecutor< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doRunPlugin ( @NotNull final Plugin< G, A, R >  plugin,
@NotNull final ConsoleInterface  console,
@NotNull final Map< String, Object >  parameters 
)

Runs a plugin model.

Parameters
pluginthe plugin model
consolethe console to use
parametersthe parameters to pass to the plugin
Returns
the thread executing the script

Definition at line 193 of file PluginExecutor.java.

References net.sf.gridarta.plugin.PluginRunMode.BATCH, and net.sf.gridarta.plugin.PluginParameters.setInterpreterValues().

+ Here is the call graph for this function:

◆ executePlugin()

Member Data Documentation

◆ pluginModel

final PluginModel<G, A, R> net.sf.gridarta.plugin.PluginExecutor< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.pluginModel
private

The PluginModel to execute.

Definition at line 53 of file PluginExecutor.java.

◆ pluginParameters

final PluginParameters net.sf.gridarta.plugin.PluginExecutor< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.pluginParameters
private

The parameters to pass to the plugin.

Definition at line 59 of file PluginExecutor.java.


The documentation for this class was generated from the following file: