public class CapacityAccumulator extends Object
| Constructor and Description |
|---|
CapacityAccumulator()
Creates an empty one
|
CapacityAccumulator(double capacity,
double upRegCap,
double downRegCap)
Creates an instance with specific values
|
| Modifier and Type | Method and Description |
|---|---|
CapacityAccumulator |
add(CapacityAccumulator other)
Adds another CapacityAccumulator to this one.
|
double |
getCapacity() |
double |
getDownRegulationCapacity() |
double |
getUpRegulationCapacity() |
void |
scale(double ratio)
Scales values by ratio.
|
public CapacityAccumulator()
public CapacityAccumulator(double capacity,
double upRegCap,
double downRegCap)
public CapacityAccumulator add(CapacityAccumulator other)
public void scale(double ratio)
public double getCapacity()
public double getUpRegulationCapacity()
public double getDownRegulationCapacity()
Copyright © 2018 Power TAC. All rights reserved.