Search in sources :

Example 11 with ObjectParameterValue

use of au.gov.asd.tac.constellation.plugins.parameters.types.ObjectParameterType.ObjectParameterValue in project constellation by constellation-app.

the class ArrangeInHierarchyPlugin method createParameters.

@Override
public PluginParameters createParameters() {
    final PluginParameters parameters = new PluginParameters();
    final PluginParameter<ObjectParameterValue> roots = ObjectParameterType.build(ROOTS_PARAMETER_ID);
    roots.setName("The root nodes");
    roots.setDescription("A list of the root vertex ids");
    parameters.addParameter(roots);
    return parameters;
}
Also used : PluginParameters(au.gov.asd.tac.constellation.plugins.parameters.PluginParameters) ObjectParameterValue(au.gov.asd.tac.constellation.plugins.parameters.types.ObjectParameterType.ObjectParameterValue)

Example 12 with ObjectParameterValue

use of au.gov.asd.tac.constellation.plugins.parameters.types.ObjectParameterType.ObjectParameterValue in project constellation by constellation-app.

the class ArrangeInBubbleTreePlugin method createParameters.

@Override
public PluginParameters createParameters() {
    final PluginParameters parameters = new PluginParameters();
    final PluginParameter<ObjectParameterValue> roots = ObjectParameterType.build(ROOTS_PARAMETER_ID);
    roots.setName("Roots");
    roots.setDescription("A set of root vertex ids");
    parameters.addParameter(roots);
    final PluginParameter<BooleanParameterValue> isMinimal = BooleanParameterType.build(IS_MINIMAL_PARAMETER_ID);
    isMinimal.setName("Is Minimal");
    isMinimal.setDescription("True for a minimal spanning tree, False for a maximal spanning tree");
    parameters.addParameter(isMinimal);
    return parameters;
}
Also used : BooleanParameterValue(au.gov.asd.tac.constellation.plugins.parameters.types.BooleanParameterType.BooleanParameterValue) PluginParameters(au.gov.asd.tac.constellation.plugins.parameters.PluginParameters) ObjectParameterValue(au.gov.asd.tac.constellation.plugins.parameters.types.ObjectParameterType.ObjectParameterValue)

Example 13 with ObjectParameterValue

use of au.gov.asd.tac.constellation.plugins.parameters.types.ObjectParameterType.ObjectParameterValue in project constellation by constellation-app.

the class ScriptingExecutePlugin method createParameters.

@Override
public PluginParameters createParameters() {
    final PluginParameters parameters = new PluginParameters();
    final PluginParameter<StringParameterValue> scriptParam = StringParameterType.build(SCRIPT_PARAMETER_ID);
    scriptParam.setName("Script Text");
    scriptParam.setDescription("The text of the Python script");
    parameters.addParameter(scriptParam);
    final PluginParameter<BooleanParameterValue> showOutputParam = BooleanParameterType.build(NEW_OUTPUT_PARAMETER_ID);
    showOutputParam.setName("New Output");
    showOutputParam.setDescription("Show script output in output window");
    showOutputParam.setBooleanValue(false);
    parameters.addParameter(showOutputParam);
    final PluginParameter<StringParameterValue> nameParam = StringParameterType.build(GRAPH_NAME_PARAMETER_ID);
    nameParam.setName("Graph Name");
    nameParam.setDescription("The name of the graph");
    nameParam.setStringValue("");
    parameters.addParameter(nameParam);
    final PluginParameter<ObjectParameterValue> exceptionParam = ObjectParameterType.build(OUTPUT_EXCEPTION_PARAMETER_ID);
    exceptionParam.setName("Script Exception");
    exceptionParam.setDescription("If there is an exception when the script runs, this will hold a reference to the exception object");
    exceptionParam.setObjectValue(null);
    parameters.addParameter(exceptionParam);
    return parameters;
}
Also used : BooleanParameterValue(au.gov.asd.tac.constellation.plugins.parameters.types.BooleanParameterType.BooleanParameterValue) StringParameterValue(au.gov.asd.tac.constellation.plugins.parameters.types.StringParameterValue) PluginParameters(au.gov.asd.tac.constellation.plugins.parameters.PluginParameters) ObjectParameterValue(au.gov.asd.tac.constellation.plugins.parameters.types.ObjectParameterType.ObjectParameterValue)

Example 14 with ObjectParameterValue

use of au.gov.asd.tac.constellation.plugins.parameters.types.ObjectParameterType.ObjectParameterValue in project constellation by constellation-app.

the class AddBlazePlugin method createParameters.

@Override
public PluginParameters createParameters() {
    final PluginParameters parameters = new PluginParameters();
    final PluginParameter<IntegerParameterValue> vertexIdParam = IntegerParameterType.build(VERTEX_ID_PARAMETER_ID);
    vertexIdParam.setName("Vertex Id");
    vertexIdParam.setDescription("The vertex id of the node to set a blaze");
    vertexIdParam.setObjectValue(Graph.NOT_FOUND);
    parameters.addParameter(vertexIdParam);
    final PluginParameter<ObjectParameterValue> vertexIdsParam = ObjectParameterType.build(VERTEX_IDS_PARAMETER_ID);
    vertexIdsParam.setObjectValue(null);
    vertexIdsParam.setName("Vertex Ids");
    vertexIdsParam.setDescription("The list of vertex ids to set a blaze for in bulk");
    parameters.addParameter(vertexIdsParam);
    return parameters;
}
Also used : IntegerParameterValue(au.gov.asd.tac.constellation.plugins.parameters.types.IntegerParameterType.IntegerParameterValue) PluginParameters(au.gov.asd.tac.constellation.plugins.parameters.PluginParameters) ObjectParameterValue(au.gov.asd.tac.constellation.plugins.parameters.types.ObjectParameterType.ObjectParameterValue)

Example 15 with ObjectParameterValue

use of au.gov.asd.tac.constellation.plugins.parameters.types.ObjectParameterType.ObjectParameterValue in project constellation by constellation-app.

the class ImportJDBCPlugin method createParameters.

@Override
public PluginParameters createParameters() {
    final PluginParameters params = new PluginParameters();
    final PluginParameter<ObjectParameterValue> connectionParam = ObjectParameterType.build(CONNECTION_PARAMETER_ID);
    connectionParam.setName("Connection");
    connectionParam.setDescription("The connection to use");
    connectionParam.setObjectValue(null);
    params.addParameter(connectionParam);
    final PluginParameter<StringParameterValue> queryParam = StringParameterType.build(QUERY_PARAMETER_ID);
    queryParam.setName("Query");
    queryParam.setDescription("The query to run");
    params.addParameter(queryParam);
    final PluginParameter<StringParameterValue> usernameParam = StringParameterType.build(USERNAME_PARAMETER_ID);
    usernameParam.setName("Username");
    params.addParameter(usernameParam);
    final PluginParameter<PasswordParameterValue> passwordParam = PasswordParameterType.build(PASSWORD_PARAMETER_ID);
    passwordParam.setName("Password");
    passwordParam.setDescription("Password");
    params.addParameter(passwordParam);
    final PluginParameter<BooleanParameterValue> schemaParam = BooleanParameterType.build(SCHEMA_PARAMETER_ID);
    schemaParam.setName("Complete with Schema");
    schemaParam.setDescription("True if the graph should run the schema rules, default is True");
    schemaParam.setBooleanValue(true);
    params.addParameter(schemaParam);
    final PluginParameter<ObjectParameterValue> definitionParam = ObjectParameterType.build(DEFINITIONS_PARAMETER_ID);
    definitionParam.setName("Definitions");
    definitionParam.setDescription("The list of definitions that extend ImportDefinition");
    definitionParam.setObjectValue(null);
    params.addParameter(definitionParam);
    return params;
}
Also used : BooleanParameterValue(au.gov.asd.tac.constellation.plugins.parameters.types.BooleanParameterType.BooleanParameterValue) StringParameterValue(au.gov.asd.tac.constellation.plugins.parameters.types.StringParameterValue) PasswordParameterValue(au.gov.asd.tac.constellation.plugins.parameters.types.PasswordParameterValue) PluginParameters(au.gov.asd.tac.constellation.plugins.parameters.PluginParameters) ObjectParameterValue(au.gov.asd.tac.constellation.plugins.parameters.types.ObjectParameterType.ObjectParameterValue)

Aggregations

PluginParameters (au.gov.asd.tac.constellation.plugins.parameters.PluginParameters)19 ObjectParameterValue (au.gov.asd.tac.constellation.plugins.parameters.types.ObjectParameterType.ObjectParameterValue)19 BooleanParameterValue (au.gov.asd.tac.constellation.plugins.parameters.types.BooleanParameterType.BooleanParameterValue)6 IntegerParameterValue (au.gov.asd.tac.constellation.plugins.parameters.types.IntegerParameterType.IntegerParameterValue)5 StringParameterValue (au.gov.asd.tac.constellation.plugins.parameters.types.StringParameterValue)5 Config (au.gov.asd.tac.constellation.plugins.algorithms.clustering.infomap.io.Config)1 ColorParameterValue (au.gov.asd.tac.constellation.plugins.parameters.types.ColorParameterType.ColorParameterValue)1 ElementTypeParameterValue (au.gov.asd.tac.constellation.plugins.parameters.types.ElementTypeParameterValue)1 FileParameterValue (au.gov.asd.tac.constellation.plugins.parameters.types.FileParameterType.FileParameterValue)1 PasswordParameterValue (au.gov.asd.tac.constellation.plugins.parameters.types.PasswordParameterValue)1 SingleChoiceParameterValue (au.gov.asd.tac.constellation.plugins.parameters.types.SingleChoiceParameterType.SingleChoiceParameterValue)1 ArrayList (java.util.ArrayList)1