public class Bounds
extends java.lang.Object
Constructor and Description |
---|
Bounds()
Constructor
|
Bounds(Issue pIssue)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
getAmtSteps()
returns the amount of steps
|
static java.util.HashMap<java.lang.Integer,Bounds> |
getIssueBounds(java.util.ArrayList<Issue> pIssues)
Creates a hashmap with for each of the issues the bounds
|
static Value |
getIssueValue(Issue pIssue,
double pIndex)
returns a Value object with the value of an issue at the given index
works for real, discrete and integer objects
|
double |
getLower()
returns the lower bound
|
static double |
getScaledIssueValue(Bounds pBounds,
Bid pBid,
Issue pIssue)
returns the scaled value of the (discrete, real or integer) issue.
|
double |
getStepSize()
returns the number of steps
|
double |
getUpper()
returns the upper bound
|
double |
normalize(double pValue)
returns a normalized version of a value
|
void |
setAmtSteps(double pAmtSteps)
set the number of steps to take
|
void |
setLower(double pLower)
sets the lower bound
|
void |
setUpper(double pUpper)
sets the upper bound
|
java.lang.String |
toString()
returns a string with the upper and lower bounds
|
public Bounds()
public Bounds(Issue pIssue)
public double getLower()
public double getUpper()
public double getAmtSteps()
public double getStepSize()
public void setLower(double pLower)
public void setUpper(double pUpper)
public void setAmtSteps(double pAmtSteps)
public static java.util.HashMap<java.lang.Integer,Bounds> getIssueBounds(java.util.ArrayList<Issue> pIssues)
public static Value getIssueValue(Issue pIssue, double pIndex)
public static double getScaledIssueValue(Bounds pBounds, Bid pBid, Issue pIssue) throws java.lang.Exception
java.lang.Exception
public double normalize(double pValue)
public java.lang.String toString()
toString
in class java.lang.Object