public interface Scalable
Modifier and Type | Interface and Description |
---|---|
static class |
Scalable.ScalingConvention
Sign convention usable for scaling.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Injection> |
filterInjections(Network network)
Scans all the expected injections of the scalable.
|
void |
filterInjections(Network network,
java.util.List<Injection> injections,
java.util.List<java.lang.String> notFound)
Scans all the expected injections of the scalable.
|
java.util.List<Injection> |
filterInjections(Network network,
java.util.List<java.lang.String> notFound)
Scans all the expected injections of the scalable.
|
static com.powsybl.action.util.GeneratorScalable |
gen(java.lang.String id)
Deprecated.
gen should be replaced by onGenerator
|
double |
initialValue(Network n)
Get the constant active power in MW injected at the network.
|
java.util.List<Generator> |
listGenerators(Network n)
Deprecated.
listGenerators should be replaced by filterInjections
|
void |
listGenerators(Network n,
java.util.List<Generator> generators,
java.util.List<java.lang.String> notFoundGenerators)
Deprecated.
listGenerators should be replaced by filterInjections
|
java.util.List<Generator> |
listGenerators(Network n,
java.util.List<java.lang.String> notFoundGenerators)
Deprecated.
listGenerators should be replaced by filterInjections
|
double |
maximumValue(Network n)
Get the maximal active power in MW.
|
double |
maximumValue(Network n,
Scalable.ScalingConvention scalingConvention)
Get the maximal active power in MW with scaling convention.
|
double |
minimumValue(Network n)
Get the minimal active power in MW.
|
double |
minimumValue(Network n,
Scalable.ScalingConvention scalingConvention)
Get the minimal active power in MW with scaling convention.
|
static com.powsybl.action.util.GeneratorScalable |
onGenerator(java.lang.String id)
create GeneratorScalable with id
|
static com.powsybl.action.util.GeneratorScalable |
onGenerator(java.lang.String id,
double minValue,
double maxValue)
create GeneratorScalable with id, min and max power values for scaling
|
static com.powsybl.action.util.LoadScalable |
onLoad(java.lang.String id)
create LoadScalable with id
|
static com.powsybl.action.util.LoadScalable |
onLoad(java.lang.String id,
double minValue,
double maxValue)
create LoadScalable with id, min and max power values for scaling
|
static com.powsybl.action.util.ProportionalScalable |
proportional(float percentage,
Scalable scalable) |
static com.powsybl.action.util.ProportionalScalable |
proportional(float percentage1,
Scalable scalable1,
float percentage2,
Scalable scalable2) |
static com.powsybl.action.util.ProportionalScalable |
proportional(float percentage1,
Scalable scalable1,
float percentage2,
Scalable scalable2,
float percentage3,
Scalable scalable3) |
static com.powsybl.action.util.ProportionalScalable |
proportional(float percentage1,
Scalable scalable1,
float percentage2,
Scalable scalable2,
float percentage3,
Scalable scalable3,
float percentage4,
Scalable scalable4) |
static com.powsybl.action.util.ProportionalScalable |
proportional(float percentage1,
Scalable scalable1,
float percentage2,
Scalable scalable2,
float percentage3,
Scalable scalable3,
float percentage4,
Scalable scalable4,
float percentage5,
Scalable scalable5) |
static com.powsybl.action.util.ProportionalScalable |
proportional(java.util.List<java.lang.Float> percentages,
java.util.List<Scalable> scalables) |
void |
reset(Network n)
Set the constant active power to zero.
|
static Scalable |
scalable(java.lang.String id) |
static java.util.List<Scalable> |
scalables(java.lang.String... ids) |
double |
scale(Network n,
double asked)
Scale the given network using Generator convention by default.
|
double |
scale(Network n,
double asked,
Scalable.ScalingConvention scalingConvention)
Scale the given network.
|
static com.powsybl.action.util.StackScalable |
stack(Scalable... scalables) |
static com.powsybl.action.util.StackScalable |
stack(java.lang.String... ids) |
double initialValue(Network n)
void reset(Network n)
double maximumValue(Network n)
double minimumValue(Network n)
double maximumValue(Network n, Scalable.ScalingConvention scalingConvention)
Scalable.ScalingConvention
double minimumValue(Network n, Scalable.ScalingConvention scalingConvention)
Scalable.ScalingConvention
@Deprecated void listGenerators(Network n, java.util.List<Generator> generators, java.util.List<java.lang.String> notFoundGenerators)
@Deprecated java.util.List<Generator> listGenerators(Network n, java.util.List<java.lang.String> notFoundGenerators)
@Deprecated java.util.List<Generator> listGenerators(Network n)
void filterInjections(Network network, java.util.List<Injection> injections, java.util.List<java.lang.String> notFound)
network
- networkinjections
- network injections used in the scalablenotFound
- expected injections not found in the networkjava.util.List<Injection> filterInjections(Network network, java.util.List<java.lang.String> notFound)
network
- networknotFound
- expected injections not found in the networkjava.util.List<Injection> filterInjections(Network network)
network
- networkdouble scale(Network n, double asked)
n
- networkasked
- value asked to adjust the scalable active powerdouble scale(Network n, double asked, Scalable.ScalingConvention scalingConvention)
n
- networkasked
- value asked to adjust the scalable active powerscalingConvention
- power convention used for scalingScalable.ScalingConvention
@Deprecated static com.powsybl.action.util.GeneratorScalable gen(java.lang.String id)
static com.powsybl.action.util.GeneratorScalable onGenerator(java.lang.String id)
static com.powsybl.action.util.GeneratorScalable onGenerator(java.lang.String id, double minValue, double maxValue)
static com.powsybl.action.util.LoadScalable onLoad(java.lang.String id)
static com.powsybl.action.util.LoadScalable onLoad(java.lang.String id, double minValue, double maxValue)
static Scalable scalable(java.lang.String id)
static java.util.List<Scalable> scalables(java.lang.String... ids)
static com.powsybl.action.util.ProportionalScalable proportional(java.util.List<java.lang.Float> percentages, java.util.List<Scalable> scalables)
static com.powsybl.action.util.ProportionalScalable proportional(float percentage, Scalable scalable)
static com.powsybl.action.util.ProportionalScalable proportional(float percentage1, Scalable scalable1, float percentage2, Scalable scalable2)
static com.powsybl.action.util.ProportionalScalable proportional(float percentage1, Scalable scalable1, float percentage2, Scalable scalable2, float percentage3, Scalable scalable3)
static com.powsybl.action.util.ProportionalScalable proportional(float percentage1, Scalable scalable1, float percentage2, Scalable scalable2, float percentage3, Scalable scalable3, float percentage4, Scalable scalable4)
static com.powsybl.action.util.ProportionalScalable proportional(float percentage1, Scalable scalable1, float percentage2, Scalable scalable2, float percentage3, Scalable scalable3, float percentage4, Scalable scalable4, float percentage5, Scalable scalable5)
static com.powsybl.action.util.StackScalable stack(Scalable... scalables)
static com.powsybl.action.util.StackScalable stack(java.lang.String... ids)
Copyright © 2019. All rights reserved.