Search in sources :

Example 46 with BooleanParameterValue

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

the class ConnectivityDegreePlugin method createParameters.

@Override
public PluginParameters createParameters() {
    final PluginParameters parameters = new PluginParameters();
    final PluginParameter<BooleanParameterValue> includeConnectionsInParameter = BooleanParameterType.build(INCLUDE_CONNECTIONS_IN_PARAMETER_ID);
    includeConnectionsInParameter.setName("Include Incoming");
    includeConnectionsInParameter.setDescription("Include incoming connections");
    includeConnectionsInParameter.setBooleanValue(true);
    parameters.addParameter(includeConnectionsInParameter);
    final PluginParameter<BooleanParameterValue> includeConnectionsOutParameter = BooleanParameterType.build(INCLUDE_CONNECTIONS_OUT_PARAMETER_ID);
    includeConnectionsOutParameter.setName("Include Outgoing");
    includeConnectionsOutParameter.setDescription("Include outgoing connections");
    includeConnectionsOutParameter.setBooleanValue(true);
    parameters.addParameter(includeConnectionsOutParameter);
    final PluginParameter<BooleanParameterValue> treatUndirectedBidirectionalParameter = BooleanParameterType.build(TREAT_UNDIRECTED_BIDIRECTIONAL);
    treatUndirectedBidirectionalParameter.setName("Include Undirected");
    treatUndirectedBidirectionalParameter.setDescription("Treat undirected connections as bidirectional connections");
    treatUndirectedBidirectionalParameter.setBooleanValue(true);
    parameters.addParameter(treatUndirectedBidirectionalParameter);
    final PluginParameter<BooleanParameterValue> ignoreSingletons = BooleanParameterType.build(IGNORE_SINGLETONS);
    ignoreSingletons.setName("Ignore Singletons");
    ignoreSingletons.setDescription("Singletons are not treated as graph components");
    ignoreSingletons.setBooleanValue(true);
    parameters.addParameter(ignoreSingletons);
    final PluginParameter<BooleanParameterValue> normalise = BooleanParameterType.build(NORMALISE);
    normalise.setName("Normalise Score");
    normalise.setDescription("When selected, score indicates the number of components on the graph if the vertex was deleted. Otherwise, score indicates how many components are added if the vertex was deleted.");
    normalise.setBooleanValue(true);
    parameters.addParameter(normalise);
    return parameters;
}
Also used : BooleanParameterValue(au.gov.asd.tac.constellation.plugins.parameters.types.BooleanParameterType.BooleanParameterValue) PluginParameters(au.gov.asd.tac.constellation.plugins.parameters.PluginParameters)

Example 47 with BooleanParameterValue

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

the class EccentricityPlugin method createParameters.

@Override
public PluginParameters createParameters() {
    final PluginParameters parameters = new PluginParameters();
    final PluginParameter<BooleanParameterValue> includeConnectionsInParameter = BooleanParameterType.build(INCLUDE_CONNECTIONS_IN_PARAMETER_ID);
    includeConnectionsInParameter.setName("Include Incoming");
    includeConnectionsInParameter.setDescription("Include incoming connections");
    includeConnectionsInParameter.setBooleanValue(true);
    parameters.addParameter(includeConnectionsInParameter);
    final PluginParameter<BooleanParameterValue> includeConnectionsOutParameter = BooleanParameterType.build(INCLUDE_CONNECTIONS_OUT_PARAMETER_ID);
    includeConnectionsOutParameter.setName("Include Outgoing");
    includeConnectionsOutParameter.setDescription("Include outgoing connections");
    includeConnectionsOutParameter.setBooleanValue(true);
    parameters.addParameter(includeConnectionsOutParameter);
    final PluginParameter<BooleanParameterValue> treatUndirectedBidirectionalParameter = BooleanParameterType.build(TREAT_UNDIRECTED_BIDIRECTIONAL);
    treatUndirectedBidirectionalParameter.setName("Include Undirected");
    treatUndirectedBidirectionalParameter.setDescription("Treat undirected connections as bidirectional connections");
    treatUndirectedBidirectionalParameter.setBooleanValue(true);
    parameters.addParameter(treatUndirectedBidirectionalParameter);
    final PluginParameter<BooleanParameterValue> normaliseByAvailableParameter = BooleanParameterType.build(NORMALISE_AVAILABLE_PARAMETER_ID);
    normaliseByAvailableParameter.setName("Normalise By Max Available Score");
    normaliseByAvailableParameter.setDescription("Normalise calculated scores by the maximum calculated score");
    normaliseByAvailableParameter.setBooleanValue(false);
    parameters.addParameter(normaliseByAvailableParameter);
    final PluginParameter<BooleanParameterValue> normaliseConnectedComponentsParameter = BooleanParameterType.build(NORMALISE_CONNECTED_COMPONENTS_PARAMETER_ID);
    normaliseConnectedComponentsParameter.setName("Normalise Connected Components");
    normaliseConnectedComponentsParameter.setDescription("Apply normalisation separately for each connected component");
    normaliseConnectedComponentsParameter.setBooleanValue(false);
    parameters.addParameter(normaliseConnectedComponentsParameter);
    return parameters;
}
Also used : BooleanParameterValue(au.gov.asd.tac.constellation.plugins.parameters.types.BooleanParameterType.BooleanParameterValue) PluginParameters(au.gov.asd.tac.constellation.plugins.parameters.PluginParameters)

Example 48 with BooleanParameterValue

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

the class EffectiveResistancePlugin method createParameters.

@Override
public PluginParameters createParameters() {
    final PluginParameters parameters = new PluginParameters();
    final PluginParameter<BooleanParameterValue> weightedParameter = BooleanParameterType.build(WEIGHTED_PARAMETER_ID);
    weightedParameter.setName("Weighted");
    weightedParameter.setDescription("Account for the weight of links");
    weightedParameter.setBooleanValue(false);
    parameters.addParameter(weightedParameter);
    final PluginParameter<BooleanParameterValue> normaliseByAvailableParameter = BooleanParameterType.build(NORMALISE_AVAILABLE_PARAMETER_ID);
    normaliseByAvailableParameter.setName("Normalise By Max Available Score");
    normaliseByAvailableParameter.setDescription("Normalise calculated scores by the maximum calculated score");
    normaliseByAvailableParameter.setBooleanValue(false);
    parameters.addParameter(normaliseByAvailableParameter);
    return parameters;
}
Also used : BooleanParameterValue(au.gov.asd.tac.constellation.plugins.parameters.types.BooleanParameterType.BooleanParameterValue) PluginParameters(au.gov.asd.tac.constellation.plugins.parameters.PluginParameters)

Example 49 with BooleanParameterValue

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

the class LocalClusteringCoefficientPlugin method createParameters.

@Override
public PluginParameters createParameters() {
    final PluginParameters parameters = new PluginParameters();
    final PluginParameter<BooleanParameterValue> normaliseByAvailableParameter = BooleanParameterType.build(NORMALISE_AVAILABLE_PARAMETER_ID);
    normaliseByAvailableParameter.setName("Normalise By Max Available Score");
    normaliseByAvailableParameter.setDescription("Normalise calculated scores by the maximum calculated score");
    normaliseByAvailableParameter.setBooleanValue(true);
    parameters.addParameter(normaliseByAvailableParameter);
    return parameters;
}
Also used : BooleanParameterValue(au.gov.asd.tac.constellation.plugins.parameters.types.BooleanParameterType.BooleanParameterValue) PluginParameters(au.gov.asd.tac.constellation.plugins.parameters.PluginParameters)

Example 50 with BooleanParameterValue

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

the class ArrangeInScatter3dGeneralPlugin method createParameters.

@Override
public PluginParameters createParameters() {
    final PluginParameters parameters = new PluginParameters();
    final PluginParameter<SingleChoiceParameterValue> xAttribute = SingleChoiceParameterType.build(SCATTER_3D_X_ATTRIBUTE);
    xAttribute.setName(X_ATTRIBUTE);
    xAttribute.setDescription("The attribute to use for the x dimension");
    xAttribute.setStringValue("");
    parameters.addParameter(xAttribute);
    final PluginParameter<SingleChoiceParameterValue> yAttribute = SingleChoiceParameterType.build(SCATTER_3D_Y_ATTRIBUTE);
    yAttribute.setName(Y_ATTRIBUTE);
    yAttribute.setDescription("The attribute to use for the y dimension");
    yAttribute.setStringValue("");
    parameters.addParameter(yAttribute);
    final PluginParameter<SingleChoiceParameterValue> zAttribute = SingleChoiceParameterType.build(SCATTER_3D_Z_ATTRIBUTE);
    zAttribute.setName(Z_ATTRIBUTE);
    zAttribute.setDescription("The attribute to use for the z dimension");
    zAttribute.setStringValue("");
    parameters.addParameter(zAttribute);
    final PluginParameter<BooleanParameterValue> xLogarithmic = BooleanParameterType.build(SCATTER_3D_X_LOGARITHMIC);
    xLogarithmic.setName(X_LOGARITHMIC);
    xLogarithmic.setDescription("Scale the X axis in Logarithmic Scale");
    xLogarithmic.setBooleanValue(false);
    parameters.addParameter(xLogarithmic);
    final PluginParameter<BooleanParameterValue> yLogarithmic = BooleanParameterType.build(SCATTER_3D_Y_LOGARITHMIC);
    yLogarithmic.setName(Y_LOGARITHMIC);
    yLogarithmic.setDescription("Scale the Y axis in Logarithmic Scale");
    yLogarithmic.setBooleanValue(false);
    parameters.addParameter(yLogarithmic);
    final PluginParameter<BooleanParameterValue> zLogarithmic = BooleanParameterType.build(SCATTER_3D_Z_LOGARITHMIC);
    zLogarithmic.setName(Z_LOGARITHMIC);
    zLogarithmic.setDescription("Scale the Z axis in Logarithmic Scale");
    zLogarithmic.setBooleanValue(false);
    parameters.addParameter(zLogarithmic);
    final PluginParameter<BooleanParameterValue> doNotScale = BooleanParameterType.build(SCATTER_3D_DO_NOT_SCALE);
    doNotScale.setName(DO_NOT_USE_SCALE);
    doNotScale.setDescription("Don't scale resultant scattergram");
    doNotScale.setBooleanValue(false);
    parameters.addParameter(doNotScale);
    return parameters;
}
Also used : BooleanParameterValue(au.gov.asd.tac.constellation.plugins.parameters.types.BooleanParameterType.BooleanParameterValue) PluginParameters(au.gov.asd.tac.constellation.plugins.parameters.PluginParameters) SingleChoiceParameterValue(au.gov.asd.tac.constellation.plugins.parameters.types.SingleChoiceParameterType.SingleChoiceParameterValue)

Aggregations

BooleanParameterValue (au.gov.asd.tac.constellation.plugins.parameters.types.BooleanParameterType.BooleanParameterValue)65 PluginParameters (au.gov.asd.tac.constellation.plugins.parameters.PluginParameters)56 IntegerParameterValue (au.gov.asd.tac.constellation.plugins.parameters.types.IntegerParameterType.IntegerParameterValue)27 SingleChoiceParameterValue (au.gov.asd.tac.constellation.plugins.parameters.types.SingleChoiceParameterType.SingleChoiceParameterValue)14 StringParameterValue (au.gov.asd.tac.constellation.plugins.parameters.types.StringParameterValue)13 Test (org.testng.annotations.Test)11 FloatParameterValue (au.gov.asd.tac.constellation.plugins.parameters.types.FloatParameterType.FloatParameterValue)9 PluginParameter (au.gov.asd.tac.constellation.plugins.parameters.PluginParameter)7 ArrayList (java.util.ArrayList)7 MultiChoiceParameterValue (au.gov.asd.tac.constellation.plugins.parameters.types.MultiChoiceParameterType.MultiChoiceParameterValue)5 ObjectParameterValue (au.gov.asd.tac.constellation.plugins.parameters.types.ObjectParameterType.ObjectParameterValue)5 ParameterChange (au.gov.asd.tac.constellation.plugins.parameters.ParameterChange)4 Map (java.util.Map)4 ColorParameterValue (au.gov.asd.tac.constellation.plugins.parameters.types.ColorParameterType.ColorParameterValue)3 FileParameterValue (au.gov.asd.tac.constellation.plugins.parameters.types.FileParameterType.FileParameterValue)3 Graph (au.gov.asd.tac.constellation.graph.Graph)2 GraphElementType (au.gov.asd.tac.constellation.graph.GraphElementType)2 ParameterValue (au.gov.asd.tac.constellation.plugins.parameters.types.ParameterValue)2 ConstellationColor (au.gov.asd.tac.constellation.utilities.color.ConstellationColor)2 GraphAttribute (au.gov.asd.tac.constellation.graph.GraphAttribute)1