Package org.aavso.tools.vstar.plugin
Class ModelCreatorPluginBase
java.lang.Object
org.aavso.tools.vstar.plugin.ModelCreatorPluginBase
- All Implemented Interfaces:
IPlugin
- Direct Known Subclasses:
ApacheCommonsPolynomialFitCreatorPlugin
This is the abstract base class for all model creator plugin classes.
A model creator plugin will appear in VStar's Analysis menu when its jar file is placed into the vstar_plugins directory.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanadditionalAuthenticationSatisfied(LoginInfo loginInfo) This method will be called after requiresAuthentication() in case any additional authentication is required.abstract StringGet a description of this plugin.abstract StringGet the human-readable display name for this plugin, e.g.Get a document file name for this plugin.getGroup()Get the group to which this plugin belongs (may be null).abstract IModelgetModel(List<ValidObservation> obs) Returns the model object for this plugin whose execute() method can be invoked to create the model artifacts.booleanIs the current invocation of the plug-in in test mode? This can help in design-for-test by allowing non-essential logic to change what code is invoked during a test.booleanDoes this plugin require authentication?voidSet parameters for this model creator plugin invocation.voidsetTestMode(boolean mode) Set the test mode.test()Method to be invoked in order to test this plug-in
-
Field Details
-
testMode
protected boolean testMode
-
-
Constructor Details
-
ModelCreatorPluginBase
public ModelCreatorPluginBase()
-
-
Method Details
-
getModel
Returns the model object for this plugin whose execute() method can be invoked to create the model artifacts.- Parameters:
obs- The list of observations to create a model of.- Returns:
- The model object or null if no model was created.
-
getDescription
Description copied from interface:IPluginGet a description of this plugin.- Specified by:
getDescriptionin interfaceIPlugin- See Also:
-
getDisplayName
Description copied from interface:IPluginGet the human-readable display name for this plugin, e.g. for a period analysis menu item.- Specified by:
getDisplayNamein interfaceIPlugin- See Also:
-
getDocName
Description copied from interface:IPluginGet a document file name for this plugin. Can be a full (absolute) URL or a file name that assumes the plugin doc directory as a base URL.- Specified by:
getDocNamein interfaceIPlugin- See Also:
-
setParams
Set parameters for this model creator plugin invocation.- Parameters:
params- The parameters to set.
-
getGroup
Description copied from interface:IPluginGet the group to which this plugin belongs (may be null). -
requiresAuthentication
public boolean requiresAuthentication()Description copied from interface:IPluginDoes this plugin require authentication?- Specified by:
requiresAuthenticationin interfaceIPlugin- Returns:
- Whether or not the plugin requires authentication.
- See Also:
-
additionalAuthenticationSatisfied
Description copied from interface:IPluginThis method will be called after requiresAuthentication() in case any additional authentication is required.- Specified by:
additionalAuthenticationSatisfiedin interfaceIPlugin- Parameters:
loginInfo- The current session's login information.- Returns:
- Whether or not any additional authentication has satisfied.
- See Also:
-
test
Description copied from interface:IPluginMethod to be invoked in order to test this plug-in -
inTestMode
public boolean inTestMode()Description copied from interface:IPluginIs the current invocation of the plug-in in test mode? This can help in design-for-test by allowing non-essential logic to change what code is invoked during a test.- Specified by:
inTestModein interfaceIPlugin- Returns:
- true or false
-
setTestMode
public void setTestMode(boolean mode) Description copied from interface:IPluginSet the test mode. Each test() method must do this if required, and not all plug-in tests will require it.- Specified by:
setTestModein interfaceIPlugin- Parameters:
mode- true or false, denoting whether in test mode
-