|
||||||||||
| 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.
| Field Summary | |
|---|---|
private java.util.Hashtable<Filter,java.lang.Boolean> |
activationMap
is used to store the information is the design is filtered. |
private Cluster |
cluster
The cluster to which the design belongs. |
private int |
id
The design id. |
private boolean |
insideBounds
is used to store the information whether the design is within the bounds of all axes. |
private java.util.Hashtable<Parameter,java.lang.String> |
parameterValues
The parameter values. |
(package private) static boolean |
printLog
Flag to enable debug message printing for this class. |
(package private) static long |
serialVersionUID
The version tracking unique identifier for Serialization. |
| 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. |
private boolean |
isInsideBounds(Axis axis)
Checks if the design is inside the bounds for a given Axis. |
boolean |
isInsideBounds(Chart chart)
Returns the value of the boolean field insideBounds. |
private void |
log(java.lang.String message)
Prints debug information to stdout when printLog is set to true. |
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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static final long serialVersionUID
static final boolean printLog
private java.util.Hashtable<Parameter,java.lang.String> parameterValues
private int id
private Cluster cluster
private java.util.Hashtable<Filter,java.lang.Boolean> activationMap
Filter individually. Each Filter is responsible for updating this
Hashtable himself. This makes the code a little less secure but yields significant
benefits in terms of performance because this way the design must only be checked with
respect to a Filter that is currently being modified.
.
private boolean insideBounds
| Constructor Detail |
|---|
public Design(int id)
id - the design id| Method 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 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 chartprivate boolean isInsideBounds(Axis axis)
axis - the axis
public boolean isInsideBounds(Chart chart)
chart - the chart
public int getId()
public void setId(int id)
id - the new idprivate void log(java.lang.String message)
message - the messagepublic 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 | |||||||||