|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdata.Design
public class Design
A Design represents a row in the DataSheet
. It stores the values for each
Parameter
of the dataSheet.
Constructor Summary | |
---|---|
Design(int id)
Instantiates a new design. |
Method Summary | |
---|---|
void |
evaluateBounds(Chart 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(Chart chart)
Checks whether the design is active. |
boolean |
isInsideBounds(Chart chart)
Returns the value of the boolean field insideBounds. |
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 |
setValue(Parameter param,
java.lang.String parameterValue)
Sets the value for a given parameter. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Design(int id)
id
- the design idMethod Detail |
---|
public 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(Chart chart)
This check is carried out by looking up each filter in the activationMap
chart
- the chart
public void setActive(Filter filter, boolean active)
Filter
.
filter
- the filteractive
- the activepublic void evaluateBounds(Chart chart)
Makes use of isInsideBounds for each Axis and returns false if isInsideBounds returns false for any Axis.
chart
- the chartpublic boolean isInsideBounds(Chart chart)
chart
- the chart
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |