public class SystemPwrGenerationPattern extends java.lang.Object implements AsciiSerializable, java.io.Serializable, java.lang.Cloneable
Title: HecJava Development
Description: This class represents a simple power generation pattern. The pattern defines how and when a power plant is active. The pattern can either be adjusted by scaling or sliding to meet a given power requirement. If the power generation is greater than the maximum capacity of the plant then the pattern is expanded to make up for the clipping that will take place.
Copyright: Copyright (c) 2003
Company:
| Modifier and Type | Field and Description |
|---|---|
static int |
PATTERN_ADJUST_SCALE |
static int |
PATTERN_ADJUST_SLIDE |
static int |
POWER_GEN_ALL_WEEK |
static int |
POWER_GEN_DAY |
static int |
POWER_GEN_WEEK_DAY_END |
| Constructor and Description |
|---|
SystemPwrGenerationPattern() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
double[][] |
computePowerGenerationPattern(RunTimeStep rts,
double powerReq,
int summationType,
double maxCap,
double overUnderPower,
double shouldHaveBeenComputed,
int period,
int dayOfPeriodStart)
Creates a power generation pattern from a standard user entered power pattern for a given
power requirement.
|
java.lang.Object |
getFieldObject(java.lang.reflect.Field fld)
This method allows access to java.lang.reflect.Field objects within the implementing
class.
|
boolean |
getPatternForDay(int dayofweek,
double[] daypattern)
fills the given double array with the pattern factors for the given day
|
double[][] |
getPwrGenPattern()
Returns a double array which represents the power generation pattern.
|
int |
getPwrGenPatternType()
Returns the type of power generation pattern this model uses.
|
int |
getPwrPatternAdjustMethod()
This returns the flag telling what type of power pattern adjustment method is used.
|
static void |
main(java.lang.String[] args) |
boolean |
setFieldObject(java.lang.reflect.Field fld,
java.lang.Object fobj)
This allows access to fields withing the implementing object to set there data.
|
void |
setPwrGenPattern(double[][] pattern) |
void |
setPwrGenPatternType(int pwrGenType)
Sets the type of power genearation pattern used.
|
void |
setPwrPatternAdjustMethod(int adjustMethod)
Sets the power adjustmentMethod.
|
public static final int PATTERN_ADJUST_SLIDE
public static final int PATTERN_ADJUST_SCALE
public static final int POWER_GEN_DAY
public static final int POWER_GEN_ALL_WEEK
public static final int POWER_GEN_WEEK_DAY_END
public boolean getPatternForDay(int dayofweek,
double[] daypattern)
dayofweek - integer indicating day of week (Sunday = 1)daypattern - a double array of size 24public int getPwrPatternAdjustMethod()
public void setPwrPatternAdjustMethod(int adjustMethod)
adjustMethod - public int getPwrGenPatternType()
public void setPwrGenPatternType(int pwrGenType)
type - public double[][] getPwrGenPattern()
public void setPwrGenPattern(double[][] pattern)
public double[][] computePowerGenerationPattern(RunTimeStep rts, double powerReq, int summationType, double maxCap, double overUnderPower, double shouldHaveBeenComputed, int period, int dayOfPeriodStart)
rts - the current time step to retrieve the base patternpowerReq - the amount of power that the compute pattern must genearatesummationType - defines if the total powerReq is needed over 1 day, a week, or a month.
this defines how that scale or sliding factors are computed
Valid values are PowerGenerationOptions.REQ_SPECIFIED_DAILY,..._WEEKLY,or ..._MONTHLYmaxCap - the maximum capacity that each cell cannot be greater thanoverUnderPower - any additional power that must be added/subtracted from the power pattern after the time
step to make up for any over/under generations prior to the time step.public static void main(java.lang.String[] args)
public java.lang.Object getFieldObject(java.lang.reflect.Field fld)
FieldAccessorgetFieldObject in interface FieldAccessorfld - The field to get.public boolean setFieldObject(java.lang.reflect.Field fld,
java.lang.Object fobj)
FieldAccessorsetFieldObject in interface FieldAccessorfld - The java field object representing the member field to be setfobj - The data to set in that fieldpublic java.lang.Object clone()
clone in class java.lang.Object