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, setInterfaceID
public 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()
AbstractFlowMeasuredAtInterface
getMeasurementCount
in class AbstractFlowMeasuredAtInterface
public java.util.Vector<java.lang.Long> getTimeVector()
AbstractFlowMeasuredAtInterface
getTimeVector
in class AbstractFlowMeasuredAtInterface
public int getNewIndexPositionForPointInTime(int searchStartIndex, long newTimeToAdd)
AbstractFlowMeasuredAtInterface
getNewIndexPositionForPointInTime
in class AbstractFlowMeasuredAtInterface
searchStartIndex
- the index where to start the searchnewTimeToAdd
- the new time to addpublic void addNewPointInTimeToMeasurements(int newIndex, long newPointInTime)
AbstractFlowMeasuredAtInterface
addNewPointInTimeToMeasurements
in class AbstractFlowMeasuredAtInterface
newIndex
- the new indexnewPointInTime
- the new Point in time