Interface DataFeed
-
- All Known Implementing Classes:
ConstantDataFeed
,DayTemperatureDataFeed
,ExpressionDataFeed
,LinearDataFeed
,NormalDistributionDataFeed
public interface DataFeed
Source of data for Device and TimeSimulation classes. For stochastic data simulation library uses SSJ (Stochastic Simulation in Java) - developed at Université de Montréal https://www.iro.umontreal.ca/~lecuyer/ssj-gh-pages/html/index.html
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getLabel()
Returns label for DataFeedData
getNextValue(Object... params)
Returns value from DataFeed.Data
getPreviousValue()
Returns last generated value from DataFeed.void
setLabel(String label)
Sets label for DataFeed
-
-
-
Method Detail
-
getNextValue
Data getNextValue(Object... params)
Returns value from DataFeed. This method is used to compute new data. Flexibility with number of parameters aims to provide freedom in implementation of whole DataFeed.- Parameters:
params
- for DataFeed computing- Returns:
- computed value
-
getPreviousValue
Data getPreviousValue()
Returns last generated value from DataFeed. Important for easy comparison between new and previous values.- Returns:
- last generated value
-
setLabel
void setLabel(String label)
Sets label for DataFeed- Parameters:
label
- the label
-
getLabel
String getLabel()
Returns label for DataFeed- Returns:
- label
-
-