public class FlowMeasuredAtInterfaceGood extends AbstractFlowMeasuredAtInterface
AbstractDomainModel) and a GoodFlowMeasured.
It is used in the class FlowsMeasuredGroupMember as a description of the flow (energy or good)
of single system (one node of the GroupTree) at a single TechnicalInterface.AbstractFlowMeasuredAtInterface.FlowType| Constructor and Description |
|---|
FlowMeasuredAtInterfaceGood(GoodFlowMeasured goodFlowMeasured,
java.lang.String interfaceID,
java.lang.String domain,
AbstractDomainModel domainModel)
Instantiates a new FlowMeasuredAtInterface by a
GoodFlowMeasured. |
| Modifier and Type | Method and Description |
|---|---|
void |
addNewPointInTimeToMeasurements(int newIndex,
long newPointInTime)
Adds a new point in time to the current measurements.
|
GoodFlowMeasured |
getGoodFlowMeasured()
Gets the good flow measured.
|
int |
getMeasurementCount()
Return the number of the measurements..
|
int |
getNewIndexPositionForPointInTime(int searchStartIndex,
long newTimeToAdd)
Returns a new index position for the specified point in time.
|
java.util.Vector<java.lang.Long> |
getTimeVector()
Returns the vector of time stamps from the measurements.
|
void |
setGoodFlowMeasured(GoodFlowMeasured goodFlowMeasured)
Sets the good flow measured.
|
getDomain, getDomainModel, getFlowType, getInterfaceID, getMeasurements, setDomain, setDomainModel, setFlowType, setInterfaceIDpublic FlowMeasuredAtInterfaceGood(GoodFlowMeasured goodFlowMeasured, java.lang.String interfaceID, java.lang.String domain, AbstractDomainModel domainModel)
GoodFlowMeasured.goodFlowMeasured - the good flow measuredinterfaceID - the interface IDdomain - the domaindomainModel - the domain modelpublic GoodFlowMeasured getGoodFlowMeasured()
public void setGoodFlowMeasured(GoodFlowMeasured goodFlowMeasured)
goodFlowMeasured - the new good flow measuredpublic int getMeasurementCount()
AbstractFlowMeasuredAtInterfacegetMeasurementCount in class AbstractFlowMeasuredAtInterfacepublic java.util.Vector<java.lang.Long> getTimeVector()
AbstractFlowMeasuredAtInterfacegetTimeVector in class AbstractFlowMeasuredAtInterfacepublic int getNewIndexPositionForPointInTime(int searchStartIndex,
long newTimeToAdd)
AbstractFlowMeasuredAtInterfacegetNewIndexPositionForPointInTime in class AbstractFlowMeasuredAtInterfacesearchStartIndex - the index where to start the searchnewTimeToAdd - the new time to addpublic void addNewPointInTimeToMeasurements(int newIndex,
long newPointInTime)
AbstractFlowMeasuredAtInterfaceaddNewPointInTimeToMeasurements in class AbstractFlowMeasuredAtInterfacenewIndex - the new indexnewPointInTime - the new Point in time