saffron.opt
Class VolcanoCost
java.lang.Object
|
+--saffron.opt.VolcanoCost
- All Implemented Interfaces:
- Cost
- class VolcanoCost
- extends Object
- implements Cost
VolcanoCost represents the cost of a plan node.
This class is immutable: none of the methods (besides
set(double, double, double)) modifies any member variables.
|
Constructor Summary |
(package private) |
VolcanoCost(double dRows,
double dCpu,
double dIo)
|
INFINITY
static final VolcanoCost INFINITY
HUGE
static final VolcanoCost HUGE
ZERO
static final VolcanoCost ZERO
TINY
static final VolcanoCost TINY
dRows
double dRows
dCpu
double dCpu
dIo
double dIo
VolcanoCost
VolcanoCost(double dRows,
double dCpu,
double dIo)
multiplyBy
public Cost multiplyBy(double factor)
- Specified by:
multiplyBy in interface Cost
minus
public Cost minus(Cost _that)
- Specified by:
minus in interface Cost
plus
public Cost plus(Cost _that)
- Specified by:
plus in interface Cost
equals
public boolean equals(Cost _that)
- Specified by:
equals in interface Cost
isLe
public boolean isLe(Cost _that)
- Specified by:
isLe in interface Cost
isLt
public boolean isLt(Cost _that)
- Specified by:
isLt in interface Cost
isInfinite
public boolean isInfinite()
- Specified by:
isInfinite in interface Cost
toString
public String toString()
- Specified by:
toString in interface Cost- Overrides:
toString in class Object
getRows
public double getRows()
- Specified by:
getRows in interface Cost
getCpu
public double getCpu()
- Specified by:
getCpu in interface Cost
getIo
public double getIo()
- Specified by:
getIo in interface Cost
set
public void set(double dRows,
double dCpu,
double dIo)