Search in sources :

Example 6 with ObjectParameterValue

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

the class AddCustomBlazePlugin 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 to add a colour blaze");
    vertexIdParam.setIntegerValue(Graph.NOT_FOUND);
    parameters.addParameter(vertexIdParam);
    final PluginParameter<ObjectParameterValue> vertexIdsParam = ObjectParameterType.build(VERTEX_IDS_PARAMETER_ID);
    vertexIdsParam.setName("Vertex Ids");
    vertexIdsParam.setDescription("The list of vertex ids to add a colour blaze (in bulk)");
    vertexIdsParam.setObjectValue(null);
    parameters.addParameter(vertexIdsParam);
    final PluginParameter<ColorParameterValue> colorParam = ColorParameterType.build(COLOR_PARAMETER_ID);
    colorParam.setName("Color");
    colorParam.setDescription("The colour value");
    parameters.addParameter(colorParam);
    return parameters;
}
Also used : IntegerParameterValue(au.gov.asd.tac.constellation.plugins.parameters.types.IntegerParameterType.IntegerParameterValue) ColorParameterValue(au.gov.asd.tac.constellation.plugins.parameters.types.ColorParameterType.ColorParameterValue) PluginParameters(au.gov.asd.tac.constellation.plugins.parameters.PluginParameters) ObjectParameterValue(au.gov.asd.tac.constellation.plugins.parameters.types.ObjectParameterType.ObjectParameterValue)

Example 7 with ObjectParameterValue

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

the class RemoveBlazePlugin 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.setIntegerValue(Graph.NOT_FOUND);
    parameters.addParameter(vertexIdParam);
    final PluginParameter<ObjectParameterValue> vertexIdsParam = ObjectParameterType.build(VERTEX_IDS_PARAMETER_ID);
    vertexIdsParam.setName("Vertex IDs");
    vertexIdsParam.setDescription("The list of vertex id's to set a blaze for in bulk");
    vertexIdsParam.setObjectValue(null);
    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 8 with ObjectParameterValue

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

the class PermanentMergePlugin method createParameters.

@Override
public PluginParameters createParameters() {
    final PluginParameters parameters = new PluginParameters();
    final PluginParameter<IntegerParameterValue> primaryNodeParam = IntegerParameterType.build(PRIMARY_NODE_PARAMETER_ID);
    primaryNodeParam.setName("Primary Vertex ID");
    primaryNodeParam.setDescription("The vertex id of the primary node");
    parameters.addParameter(primaryNodeParam);
    final PluginParameter<ObjectParameterValue> selectedNodesParam = ObjectParameterType.build(SELECTED_NODES_PARAMETER_ID);
    selectedNodesParam.setName("Selected Vertex Ids");
    selectedNodesParam.setDescription("A list of the vertex ids to merge");
    parameters.addParameter(selectedNodesParam);
    final PluginParameter<ObjectParameterValue> attributesParam = ObjectParameterType.build(ATTTRIBUTES_PARAMETER_ID);
    attributesParam.setName("Attributes");
    attributesParam.setDescription("A Map of the attributes to merge which is the attribute id to the value to replace");
    parameters.addParameter(attributesParam);
    final PluginParameter<BooleanParameterValue> createNewNodeParam = BooleanParameterType.build(CREATE_NEW_NODE_PARAMETER_ID);
    createNewNodeParam.setName("Create New Node");
    createNewNodeParam.setDescription("If True, create a new node. The default is True.");
    createNewNodeParam.setBooleanValue(true);
    parameters.addParameter(createNewNodeParam);
    final PluginParameter<BooleanParameterValue> createLoopsParam = BooleanParameterType.build(CREATE_LOOPS_PARAMETER_ID);
    createLoopsParam.setName("Create Loops");
    createLoopsParam.setDescription("If True, create loops. The default is True.");
    createLoopsParam.setBooleanValue(true);
    parameters.addParameter(createLoopsParam);
    final PluginParameter<BooleanParameterValue> keepSimpleParam = BooleanParameterType.build(KEEP_SIMPLE_PARAMETER_ID);
    keepSimpleParam.setName("Keep Simple");
    keepSimpleParam.setDescription("If True, only include directed transactions. The default is False.");
    keepSimpleParam.setBooleanValue(false);
    parameters.addParameter(keepSimpleParam);
    return parameters;
}
Also used : BooleanParameterValue(au.gov.asd.tac.constellation.plugins.parameters.types.BooleanParameterType.BooleanParameterValue) 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 9 with ObjectParameterValue

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

the class ChangeSelectionPlugin method createParameters.

@Override
public PluginParameters createParameters() {
    final PluginParameters parameters = new PluginParameters();
    final PluginParameter<ObjectParameterValue> elementBitSet = ObjectParameterType.build(ELEMENT_BIT_SET_PARAMETER_ID);
    elementBitSet.setName("Element Ids");
    elementBitSet.setDescription("A set of the element id's, such as the vertex ids");
    parameters.addParameter(elementBitSet);
    final PluginParameter<SingleChoiceParameterValue> elementTypeParameter = SingleChoiceParameterType.build(ELEMENT_TYPE_PARAMETER_ID, ElementTypeParameterValue.class);
    elementTypeParameter.setName("Element Type");
    elementTypeParameter.setDescription("The graph element type");
    final List<ElementTypeParameterValue> elementTypes = new ArrayList<>();
    elementTypes.add(new ElementTypeParameterValue(GraphElementType.TRANSACTION));
    elementTypes.add(new ElementTypeParameterValue(GraphElementType.VERTEX));
    SingleChoiceParameterType.setOptionsData(elementTypeParameter, elementTypes);
    parameters.addParameter(elementTypeParameter);
    final PluginParameter<ObjectParameterValue> selectionMode = ObjectParameterType.build(SELECTION_MODE_PARAMETER_ID);
    selectionMode.setName("Selection Mode");
    selectionMode.setDescription("The selection mode being ADD, REMOVE, REPLACE or INVERT");
    parameters.addParameter(selectionMode);
    return parameters;
}
Also used : ElementTypeParameterValue(au.gov.asd.tac.constellation.plugins.parameters.types.ElementTypeParameterValue) ArrayList(java.util.ArrayList) PluginParameters(au.gov.asd.tac.constellation.plugins.parameters.PluginParameters) SingleChoiceParameterValue(au.gov.asd.tac.constellation.plugins.parameters.types.SingleChoiceParameterType.SingleChoiceParameterValue) ObjectParameterValue(au.gov.asd.tac.constellation.plugins.parameters.types.ObjectParameterType.ObjectParameterValue)

Example 10 with ObjectParameterValue

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

the class InfoMapPlugin method createParameters.

@Override
public PluginParameters createParameters() {
    final PluginParameters parameters = new PluginParameters();
    final PluginParameter<ObjectParameterValue> configParam = ObjectParameterType.build(CONFIG_PARAMETER_ID);
    configParam.setName("Config");
    configParam.setDescription("A Config object which defines the Info Map");
    configParam.setObjectValue(new Config());
    parameters.addParameter(configParam);
    return parameters;
}
Also used : Config(au.gov.asd.tac.constellation.plugins.algorithms.clustering.infomap.io.Config) 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