Package adams.opt.optimise
Class OptData
- java.lang.Object
-
- adams.opt.optimise.OptData
-
- All Implemented Interfaces:
CleanUpHandler
,CloneHandler<OptData>
,Serializable
public class OptData extends Object implements Serializable, CleanUpHandler, CloneHandler<OptData>
Holds set of OptVars with current values.- Version:
- $Revision$
- Author:
- dale
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OptData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(OptVar ov)
Add var.void
cleanUp()
Cleans up data structures, frees up memory.Double
get(String var)
Get var value.OptData
getClone()
Copy this object.Set<String>
getDataNames()
Get set of datanames.OptVar
getVar(String name)
Get var.Set<String>
getVarNames()
Get set of varnames.void
set(String var, double val)
Set var value.String
toString()
Returns a string representation of the data structure.String
toVarString()
Returns a string representation of the data structure.
-
-
-
Method Detail
-
getClone
public OptData getClone()
Copy this object.- Specified by:
getClone
in interfaceCloneHandler<OptData>
- Returns:
- copy.
-
set
public void set(String var, double val)
Set var value.- Parameters:
var
- var name.val
- var value.
-
add
public void add(OptVar ov)
Add var.- Parameters:
ov
- var
-
cleanUp
public void cleanUp()
Cleans up data structures, frees up memory.- Specified by:
cleanUp
in interfaceCleanUpHandler
-
toString
public String toString()
Returns a string representation of the data structure.
-
toVarString
public String toVarString()
Returns a string representation of the data structure.- Returns:
- the string representation
-
-