public class FlowsMeasuredGroupMember extends java.util.Vector<AbstractFlowMeasuredAtInterface>
FlowsMeasuredGroup and stores
the energy flows for a single member of an aggregation (group) within an Vector. Additionally the storage loads
and energy losses can be handled.
Each energy flow at an interface is described by the class AbstractFlowMeasuredAtInterface.| Constructor and Description |
|---|
FlowsMeasuredGroupMember() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAbstractFlowMeasured(AbstractFlow abstractFlowMeasured,
TechnicalInterface ti)
|
void |
addEnergyFlowMeasured(EnergyFlowMeasured efm,
java.lang.String interfaceID,
java.lang.String domain,
AbstractDomainModel domainModel,
EnergyCarrier energyCarrier)
Adds the specified EnergyFlowMeasured to this
GroupMember description. |
void |
addGoodFlowMeasured(GoodFlowMeasured gfm,
java.lang.String interfaceID,
java.lang.String domain,
AbstractDomainModel domainModel)
Adds the specified GoodFlowMeasured to this
GroupMember description. |
EnergyFlowMeasured |
getEnergyLosses()
Gets the energy losses as
EnergyFlowMeasured. |
java.util.ArrayList<AbstractFlowMeasuredAtInterface> |
getFlowMeasuredAtInterfaceByDomain(java.lang.String domain)
Returns an ArrayList of
AbstractFlowMeasuredAtInterface for the specified domain
or null in case that no Energy or Good Flows could be found. |
java.util.ArrayList<AbstractFlowMeasuredAtInterface> |
getFlowMeasuredByDomainAndDomainModel(java.lang.String domain,
AbstractDomainModel domainModel)
Returns an ArrayList of
AbstractFlowMeasuredAtInterface for the specified combination of
EnergyCarrier and domain model (AbstractDomainModel) or null in case that no
Energy Flows could be found. |
AbstractFlow |
getFlowMeasuredByDomainAndInterfaceID(java.lang.String domain,
java.lang.String interfaceID)
Returns the
EnergyFlowMeasured or the GoodFlowMeasured by the specified domain and the interface id. |
java.util.HashMap<java.lang.String,EnergyAmount> |
getStorageLoadsEnergy()
Returns the storage loads for energy by domain and for this group member.
|
java.util.HashMap<java.lang.String,java.lang.Double> |
getStorageLoadsGood()
Returns the storage loads for goods by domain and for this group member.
|
void |
setEnergyLosses(EnergyFlowMeasured energyLosses)
Sets the energy losses as
EnergyFlowMeasured. |
void |
setStorageLoadsEnergy(java.util.HashMap<java.lang.String,EnergyAmount> storageLoads)
Sets the storage loads for energy by domain and for this group Member.
|
void |
setStorageLoadsGood(java.util.HashMap<java.lang.String,java.lang.Double> storageLoadsGood)
Sets the storage loads for goods by domain and for this group Member.
|
java.lang.String |
toString() |
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, forEach, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeIf, removeRange, replaceAll, retainAll, set, setElementAt, setSize, size, sort, spliterator, subList, toArray, toArray, trimToSizepublic void addAbstractFlowMeasured(AbstractFlow abstractFlowMeasured, TechnicalInterface ti)
abstractFlowMeasured - the abstract flow measured that is either a EnergyFlowMeasured or a GoodFlowMeasuredti - the TechnicalInterface that is described by the measurementspublic void addEnergyFlowMeasured(EnergyFlowMeasured efm, java.lang.String interfaceID, java.lang.String domain, AbstractDomainModel domainModel, EnergyCarrier energyCarrier)
GroupMember description.efm - the EnergyFlowMeasuredinterfaceID - the interface iddomain - the domaindomainModel - the domain modelenergyCarrier - the energy carrierpublic void addGoodFlowMeasured(GoodFlowMeasured gfm, java.lang.String interfaceID, java.lang.String domain, AbstractDomainModel domainModel)
GroupMember description.gfm - the GoodFlowMeasuredinterfaceID - the interface IDdomain - the domaindomainModel - the domain modelpublic AbstractFlow getFlowMeasuredByDomainAndInterfaceID(java.lang.String domain, java.lang.String interfaceID)
EnergyFlowMeasured or the GoodFlowMeasured by the specified domain and the interface id.domain - the domaininterfaceID - the interface idpublic java.util.ArrayList<AbstractFlowMeasuredAtInterface> getFlowMeasuredAtInterfaceByDomain(java.lang.String domain)
AbstractFlowMeasuredAtInterface for the specified domain
or null in case that no Energy or Good Flows could be found.domain - the domainAbstractFlowMeasuredAtInterface for this EnergyCarrierpublic java.util.ArrayList<AbstractFlowMeasuredAtInterface> getFlowMeasuredByDomainAndDomainModel(java.lang.String domain, AbstractDomainModel domainModel)
AbstractFlowMeasuredAtInterface for the specified combination of
EnergyCarrier and domain model (AbstractDomainModel) or null in case that no
Energy Flows could be found.domain - the domaindomainModel - the domain model instance to compareAbstractFlowMeasuredAtInterface for the domain modelpublic java.util.HashMap<java.lang.String,EnergyAmount> getStorageLoadsEnergy()
public void setStorageLoadsEnergy(java.util.HashMap<java.lang.String,EnergyAmount> storageLoads)
storageLoads - the storage loadspublic java.util.HashMap<java.lang.String,java.lang.Double> getStorageLoadsGood()
public void setStorageLoadsGood(java.util.HashMap<java.lang.String,java.lang.Double> storageLoadsGood)
storageLoadsGood - the storage loads goodpublic EnergyFlowMeasured getEnergyLosses()
EnergyFlowMeasured.public void setEnergyLosses(EnergyFlowMeasured energyLosses)
EnergyFlowMeasured.energyLosses - the new energy lossespublic java.lang.String toString()
toString in class java.util.Vector<AbstractFlowMeasuredAtInterface>