data
public class Design extends java.lang.Object implements java.io.Serializable
DataSheet
. It stores the values for each
Parameter
of the dataSheet.Constructor and Description |
---|
Design(int id)
/**
Instantiates a new design.
|
Modifier and Type | Method and Description |
---|---|
void |
evaluateBounds(ParallelCoordinatesChart chart)
Checks whether the design is within the bounds of all axes of the given Chart and updates the boolean
field insideBounds accordingly.
|
Cluster |
getCluster()
Gets the cluster to which the design belongs.
|
double |
getDoubleValue(Parameter param)
Gets the numeric (double) representation of a value for a given parameter.
|
int |
getId()
Gets the id of the design.
|
java.lang.String |
getStringValue(Parameter param)
Gets the String representation of a value for a given parameter.
|
boolean |
isActive(ParallelCoordinatesChart chart)
Checks whether the design is active.
|
boolean |
isInsideBounds(ParallelCoordinatesChart chart)
Returns the value of the boolean field insideBounds.
|
boolean |
isSelected()
Returns the value of the boolean field selected.
|
void |
removeParameter(Parameter param)
Removes a parameter from the design
|
void |
setActive(Filter filter,
boolean active)
Specifies whether the design is still active after applying a given
Filter . |
void |
setCluster(Cluster cluster)
Sets the cluster.
|
void |
setId(int id)
Sets the id of the design.
|
void |
setSelected(boolean selected)
Sets the value of the boolean field selected.
|
void |
setValue(Parameter param,
java.lang.String parameterValue)
Sets the value for a given parameter.
|
public Design(int id)
id
- the design idpublic void setValue(Parameter param, java.lang.String parameterValue)
param
- the parameter for which the value should be setparameterValue
- the parameter valuepublic double getDoubleValue(Parameter param)
param
- the parameter for which the value should be returned.java.lang.IllegalArgumentException
- if the parameter is unknown to the design.public java.lang.String getStringValue(Parameter param)
param
- the parameter for which the value should be returned.java.lang.IllegalArgumentException
- if the parameter is unknown to the design.public void removeParameter(Parameter param)
param
- the parameter to be removed.java.lang.IllegalArgumentException
- if the parameter is unknown to the design.public boolean isActive(ParallelCoordinatesChart chart)
This check is carried out by looking up each filter in the activationMap
chart
- the chartpublic void setActive(Filter filter, boolean active)
Filter
.filter
- the filteractive
- the activepublic void evaluateBounds(ParallelCoordinatesChart chart)
Makes use of isInsideBounds for each Axis and returns false if isInsideBounds returns false for any Axis.
chart
- the chartpublic boolean isInsideBounds(ParallelCoordinatesChart chart)
chart
- the chartpublic boolean isSelected()
public void setSelected(boolean selected)
selected
- the selected value.public int getId()
public void setId(int id)
id
- the new idpublic Cluster getCluster()
public void setCluster(Cluster cluster)
cluster
- the new cluster to which the design belongs.