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
+ 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

BshRunnable< G, A, R > doRunPlugin (@NotNull final Plugin< G, A, R > plugin, @NotNull final ConsoleInterface console, @NotNull final Map< String, Object > parameters)
 
int executePlugin (@NotNull final String plugin, @NotNull final Iterable< String > parameters)
 
 PluginExecutor (@NotNull final PluginModel< G, A, R > pluginModel, @NotNull final PluginParameters pluginParameters)
 

Private Attributes

final PluginModel< G, A, R > pluginModel
 
final PluginParameters pluginParameters
 

Detailed Description

Allows execution of Plugins.

Author
Andreas Kirschbaum

Definition at line 48 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 67 of file PluginExecutor.java.

Member Function Documentation

◆ doRunPlugin()

BshRunnable<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 196 of file PluginExecutor.java.

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

Referenced by net.sf.gridarta.gui.dialog.plugin.PluginController<?, ?, ?>.runPlugin().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ executePlugin()

int net.sf.gridarta.plugin.PluginExecutor< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.executePlugin ( @NotNull final String  plugin,
@NotNull final Iterable< String >  parameters 
)

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 54 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 60 of file PluginExecutor.java.


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