public class ReservoirSystem
extends java.lang.Object
| Constructor and Description |
|---|
ReservoirSystem()
Default Constructor
|
ReservoirSystem(RssSystem sys,
ReservoirElement[] resArray)
Constructs a ReservoirSystem object initialized with the given list of
ReservoirElements
|
| Modifier and Type | Method and Description |
|---|---|
void |
buildSystem(ReservoirElement[] resArray)
Uses the given List of ReservoirElement objects to construct an ordered
list of ReservoirSystemGroup objects
|
void |
calcPeriodPowerData(RunTimePeriod rtp)
first calculation of reservoir group power data called from
SystemHydropowerRule.evaluateLimits()
|
double |
calcPreviousGeneration(RunTimePeriod rtp)
calculate the energy generation during this period up to start of this
time step
|
int |
determineActiveReservoirs(RunTimeStep rts,
SystemHydropowerRule syspowRule)
determined actively managed reservoirs by looking references to this rule
in the active rule set of each reservoir
|
int |
getActiveRes(boolean[] activeRes)
fill the given array according to which reservoirs are actively managed
during the current time step
|
ReservoirSystemGroup |
getReservoirGroup(Element resElem)
return a ReservoirSystemGroup for the given reservoir element.
|
ReservoirSystemGroup |
getReservoirGroup(int i)
return a ReservoirSystemGroup for the given index.
|
void |
initBalDebugOutput() |
void |
initCompute(RunTimeWindow rtw)
initialize compute, finalizing connectivity
|
int |
size()
return the number of reservoir groups in this system
|
void |
writeBalDebugOutput(RunTimePeriod rtp,
int iter) |
void |
writeDebugOutput(java.io.BufferedWriter bufout,
java.lang.String delim) |
void |
writeDebugOutputHeader(java.io.BufferedWriter bufout,
java.lang.String delim) |
public ReservoirSystem()
public ReservoirSystem(RssSystem sys, ReservoirElement[] resArray)
resArray - array of ReservoirElement objectspublic void initBalDebugOutput()
public void writeBalDebugOutput(RunTimePeriod rtp, int iter)
public void writeDebugOutputHeader(java.io.BufferedWriter bufout,
java.lang.String delim)
throws java.io.IOException
java.io.IOExceptionpublic void writeDebugOutput(java.io.BufferedWriter bufout,
java.lang.String delim)
throws java.io.IOException
java.io.IOExceptionpublic int determineActiveReservoirs(RunTimeStep rts, SystemHydropowerRule syspowRule)
rts - public void calcPeriodPowerData(RunTimePeriod rtp)
rtp - public double calcPreviousGeneration(RunTimePeriod rtp)
rtp - public int getActiveRes(boolean[] activeRes)
activeRes - public int size()
public void buildSystem(ReservoirElement[] resArray)
resList - public void initCompute(RunTimeWindow rtw)
public ReservoirSystemGroup getReservoirGroup(int i)
i - index of the group in the group arraypublic ReservoirSystemGroup getReservoirGroup(Element resElem)
resElem - a reservoir element