public class WaterAccountSet extends java.lang.Object implements AsciiSerializable
| Constructor and Description |
|---|
WaterAccountSet()
Instantiates a new water account set.
|
WaterAccountSet(java.lang.String name,
java.lang.String desc,
java.util.List<StorageZoneRef> zones,
int index)
Instantiates a new water account set.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addWaterAccount(WaterAccount wa)
Adds the water account.
|
java.lang.Object |
clone() |
boolean |
containsReservoir(ReservoirElement res) |
boolean |
containsReservoirOpSet(int resID,
int opSetID)
Contains reservoir op set.
|
boolean |
containsReservoirOpSet(StorageZoneRef zoneRef)
Contains reservoir op set.
|
WaterAccount |
createNewWaterAccount(java.lang.String name,
java.lang.String description,
int setIndex)
Creates the new water account.
|
void |
deleteWaterAccount(WaterAccount waterAccount)
Delete water account.
|
boolean |
getAllAcctsUsePctOfCon() |
java.lang.String |
getDescription()
Gets the description.
|
java.lang.Object |
getFieldObject(java.lang.reflect.Field fld)
This method allows access to java.lang.reflect.Field objects within the implementing
class.
|
int |
getIndex()
Gets the index.
|
java.lang.String |
getName()
Gets the name.
|
java.util.List<StorageZoneRef> |
getResZoneRefs()
Gets the res pool refs.
|
int |
getSize()
Number of WaterAccounts this set holds.
|
int |
getSize(ReservoirElement res)
Number of WaterAccounts this set holds using a given reservoir.
|
WaterAccount |
getWaterAccount(java.lang.String name)
Gets the water account.
|
java.util.List<WaterAccount> |
getWaterAccounts()
Gets the water accounts.
|
java.util.List<WaterAccount> |
getWaterAccounts(ReservoirElement res)
Gets the water accounts using a particular reservoir.
|
WaterAccount |
getWaterAccountSet(int index)
Gets the water account.
|
void |
initialize(RssSystem system,
RunTimeWindow rtw)
Initialize water accounts in set.
|
int |
nextWaterAccountIndex()
Next water account index.
|
void |
renameWaterAccount(java.lang.String oldName,
java.lang.String newName)
Rename water account.
|
void |
setAllAcctsUsePctOfCon(boolean val) |
void |
setDescription(java.lang.String description)
Sets the description.
|
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 |
setName(java.lang.String name)
Sets the name.
|
void |
setResZoneRefs(java.util.List<StorageZoneRef> resPoolRefs)
Sets the res pool refs.
|
void |
setWaterAccounts(java.util.List<WaterAccount> waterAccounts)
Sets the water accounts.
|
java.lang.String |
toString() |
public WaterAccountSet()
public WaterAccountSet(java.lang.String name,
java.lang.String desc,
java.util.List<StorageZoneRef> zones,
int index)
name - the namedesc - the desczones - the zonesindex - the indexpublic boolean containsReservoirOpSet(int resID,
int opSetID)
resID - the res idopSetID - the op set idpublic boolean containsReservoir(ReservoirElement res)
public int getIndex()
public int getSize()
public int getSize(ReservoirElement res)
public void setName(java.lang.String name)
name - the new namepublic java.lang.String getName()
public void setDescription(java.lang.String description)
description - the new descriptionpublic java.lang.String getDescription()
public void setResZoneRefs(java.util.List<StorageZoneRef> resPoolRefs)
resPoolRefs - the new res pool refspublic java.util.List<StorageZoneRef> getResZoneRefs()
public boolean getAllAcctsUsePctOfCon()
public void setAllAcctsUsePctOfCon(boolean val)
public boolean containsReservoirOpSet(StorageZoneRef zoneRef)
zoneRef - the zone refpublic void setWaterAccounts(java.util.List<WaterAccount> waterAccounts)
waterAccounts - the new water accountspublic java.util.List<WaterAccount> getWaterAccounts()
public void addWaterAccount(WaterAccount wa)
wa - the wapublic java.util.List<WaterAccount> getWaterAccounts(ReservoirElement res)
res - public WaterAccount createNewWaterAccount(java.lang.String name, java.lang.String description, int setIndex)
name - the namedescription - the descriptionsetIndex - the set indexpublic void renameWaterAccount(java.lang.String oldName,
java.lang.String newName)
oldName - the old namenewName - the new namepublic void deleteWaterAccount(WaterAccount waterAccount)
waterAccount - the water accountpublic WaterAccount getWaterAccount(java.lang.String name)
name - the namepublic WaterAccount getWaterAccountSet(int index)
index - the indexpublic int nextWaterAccountIndex()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Object clone()
clone in class java.lang.Objectpublic 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 void initialize(RssSystem system, RunTimeWindow rtw)