use of au.gov.asd.tac.constellation.plugins.parameters.types.BooleanParameterType.BooleanParameterValue in project constellation by constellation-app.
the class PagerankCentralityPlugin method createParameters.
@Override
public PluginParameters createParameters() {
final PluginParameters parameters = new PluginParameters();
final PluginParameter<BooleanParameterValue> treatUndirectedBidirectionalParameter = BooleanParameterType.build(TREAT_UNDIRECTED_BIDIRECTIONAL_PARAMETER_ID);
treatUndirectedBidirectionalParameter.setName("Include Undirected");
treatUndirectedBidirectionalParameter.setDescription("Treat undirected connections as bidirectional connections");
treatUndirectedBidirectionalParameter.setBooleanValue(true);
parameters.addParameter(treatUndirectedBidirectionalParameter);
final PluginParameter<FloatParameterValue> dampingFactorParameter = FloatParameterType.build(DAMPING_FACTOR_PARAMETER_ID);
dampingFactorParameter.setName("Damping Factor");
dampingFactorParameter.setDescription("The damping factor to apply at each iteration");
dampingFactorParameter.setFloatValue(0.85F);
parameters.addParameter(dampingFactorParameter);
final PluginParameter<IntegerParameterValue> iterationsParameter = IntegerParameterType.build(ITERATIONS_PARAMETER_ID);
iterationsParameter.setName("Iterations");
iterationsParameter.setDescription("The number of iterations to run before returning a result");
iterationsParameter.setIntegerValue(100);
parameters.addParameter(iterationsParameter);
final PluginParameter<FloatParameterValue> epsilonParameter = FloatParameterType.build(EPSILON_PARAMETER_ID);
epsilonParameter.setName("Epsilon");
epsilonParameter.setDescription("The change threshold at which equilibrium can be considered reached");
epsilonParameter.setFloatValue(1E-8F);
parameters.addParameter(epsilonParameter);
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;
}
use of au.gov.asd.tac.constellation.plugins.parameters.types.BooleanParameterType.BooleanParameterValue in project constellation by constellation-app.
the class AverageDegreePlugin 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);
return parameters;
}
use of au.gov.asd.tac.constellation.plugins.parameters.types.BooleanParameterType.BooleanParameterValue in project constellation by constellation-app.
the class BetweennessCentralityPlugin 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(false);
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> normaliseByPossibleParameter = BooleanParameterType.build(NORMALISE_POSSIBLE_PARAMETER_ID);
normaliseByPossibleParameter.setName("Normalise By Max Possible Score");
normaliseByPossibleParameter.setDescription("Normalise calculated scores by the maximum possible score");
normaliseByPossibleParameter.setBooleanValue(true);
parameters.addParameter(normaliseByPossibleParameter);
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);
final PluginParameter<BooleanParameterValue> selectedOnlyParameter = BooleanParameterType.build(SELECTED_ONLY_PARAMETER_ID);
selectedOnlyParameter.setName("Selected Only");
selectedOnlyParameter.setDescription("Calculate using only selected elements");
selectedOnlyParameter.setBooleanValue(false);
parameters.addParameter(selectedOnlyParameter);
return parameters;
}
use of au.gov.asd.tac.constellation.plugins.parameters.types.BooleanParameterType.BooleanParameterValue in project constellation by constellation-app.
the class ClosenessCentralityPlugin method createParameters.
@Override
public PluginParameters createParameters() {
final PluginParameters parameters = new PluginParameters();
final PluginParameter<BooleanParameterValue> harmonicParameter = BooleanParameterType.build(HARMONIC_PARAMETER_ID);
harmonicParameter.setName("Harmonic");
harmonicParameter.setDescription("Calculate scores using the harmonic mean");
harmonicParameter.setBooleanValue(false);
parameters.addParameter(harmonicParameter);
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> normaliseByPossibleParameter = BooleanParameterType.build(NORMALISE_POSSIBLE_PARAMETER_ID);
normaliseByPossibleParameter.setName("Normalise By Max Possible Score");
normaliseByPossibleParameter.setDescription("Normalise calculated scores by the maximum possible score");
normaliseByPossibleParameter.setBooleanValue(true);
parameters.addParameter(normaliseByPossibleParameter);
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);
final PluginParameter<BooleanParameterValue> selectedOnlyParameter = BooleanParameterType.build(SELECTED_ONLY_PARAMETER_ID);
selectedOnlyParameter.setName("Selected Only");
selectedOnlyParameter.setDescription("Calculate using only selected elements");
selectedOnlyParameter.setBooleanValue(false);
parameters.addParameter(selectedOnlyParameter);
return parameters;
}
use of au.gov.asd.tac.constellation.plugins.parameters.types.BooleanParameterType.BooleanParameterValue in project constellation by constellation-app.
the class DegreeCentralityPlugin 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> normaliseByPossibleParameter = BooleanParameterType.build(NORMALISE_POSSIBLE_PARAMETER_ID);
normaliseByPossibleParameter.setName("Normalise By Max Possible Score");
normaliseByPossibleParameter.setDescription("Normalise calculated scores by the maximum possible score");
normaliseByPossibleParameter.setBooleanValue(false);
parameters.addParameter(normaliseByPossibleParameter);
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> selectedOnlyParameter = BooleanParameterType.build(SELECTED_ONLY_PARAMETER_ID);
selectedOnlyParameter.setName("Selected Only");
selectedOnlyParameter.setDescription("Calculate using only selected elements");
selectedOnlyParameter.setBooleanValue(false);
parameters.addParameter(selectedOnlyParameter);
return parameters;
}
Aggregations