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;
}
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;
}
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;
}
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;
}
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;
}
Aggregations