public class SensorsXMLObjectCreator extends java.lang.Object
Constructor and Description |
---|
SensorsXMLObjectCreator(java.lang.Long seed) |
Modifier and Type | Method and Description |
---|---|
Condition |
createCondition() |
java.util.List<Condition> |
createConditionList() |
DataPoint |
createDataPoint(java.util.Set<core.tut.pori.http.parameters.DateIntervalParameter.Interval> createdFilter,
java.lang.String measurementId)
Return pseudo randomly generated DataPoint
|
java.util.List<DataPoint> |
createDataPointList(java.lang.String measurementId,
core.tut.pori.http.parameters.Limits limits,
java.util.Set<core.tut.pori.http.parameters.DateIntervalParameter.Interval> createdFilter) |
java.lang.String |
createGUID() |
Measurement |
generateMeasurementData(long[] backendIdFilter,
java.util.Set<core.tut.pori.http.parameters.DateIntervalParameter.Interval> createdFilter,
core.tut.pori.http.parameters.DataGroups dataGroups,
core.tut.pori.http.parameters.Limits limits) |
java.util.List<Measurement> |
generateMeasurementList(long[] backendIdFilter,
java.util.Set<core.tut.pori.http.parameters.DateIntervalParameter.Interval> createdFilter,
core.tut.pori.http.parameters.DataGroups dataGroups,
core.tut.pori.http.parameters.Limits limits,
java.util.List<java.lang.String> measurementIdFilter) |
service.tut.pori.tasks.datatypes.Task.State |
generateState() |
service.tut.pori.tasks.datatypes.TaskBackend |
generateTaskBackend(java.lang.Long backendId) |
SensorTask |
generateTaskDetails(java.lang.Long backendId,
java.util.Collection<java.lang.String> taskIds,
java.lang.String taskType) |
SensorTask |
generateTaskResults(java.lang.Long backendId,
core.tut.pori.http.parameters.DataGroups dataGroups,
core.tut.pori.http.parameters.Limits limits,
java.util.Collection<java.lang.String> taskIds,
java.lang.String taskType) |
service.tut.pori.tasks.datatypes.Task.Visibility |
generateVisibility() |
java.util.Random |
getRandom() |
service.tut.pori.tasks.datatypes.Task |
setSensorTaskDetails(SensorTask task) |
service.tut.pori.tasks.datatypes.Task |
setTaskDetails(service.tut.pori.tasks.datatypes.Task task,
long backendId,
java.util.Collection<java.lang.String> taskIds,
java.lang.String taskType) |
public SensorsXMLObjectCreator(java.lang.Long seed)
seed
- for random generator, or null to use default (system time in nanoseconds)public java.util.Random getRandom()
public java.util.List<Measurement> generateMeasurementList(long[] backendIdFilter, java.util.Set<core.tut.pori.http.parameters.DateIntervalParameter.Interval> createdFilter, core.tut.pori.http.parameters.DataGroups dataGroups, core.tut.pori.http.parameters.Limits limits, java.util.List<java.lang.String> measurementIdFilter)
backendIdFilter
- createdFilter
- dataGroups
- limits
- measurementIdFilter
- public Measurement generateMeasurementData(long[] backendIdFilter, java.util.Set<core.tut.pori.http.parameters.DateIntervalParameter.Interval> createdFilter, core.tut.pori.http.parameters.DataGroups dataGroups, core.tut.pori.http.parameters.Limits limits)
backendIdFilter
- createdFilter
- dataGroups
- limits
- public SensorTask generateTaskDetails(java.lang.Long backendId, java.util.Collection<java.lang.String> taskIds, java.lang.String taskType) throws java.lang.IllegalArgumentException
backendId
- taskIds
- taskType
- java.lang.IllegalArgumentException
- on invalid argumentspublic SensorTask generateTaskResults(java.lang.Long backendId, core.tut.pori.http.parameters.DataGroups dataGroups, core.tut.pori.http.parameters.Limits limits, java.util.Collection<java.lang.String> taskIds, java.lang.String taskType) throws java.lang.IllegalArgumentException
backendId
- dataGroups
- limits
- taskIds
- taskType
- java.lang.IllegalArgumentException
- on invalid argumentspublic java.util.List<DataPoint> createDataPointList(java.lang.String measurementId, core.tut.pori.http.parameters.Limits limits, java.util.Set<core.tut.pori.http.parameters.DateIntervalParameter.Interval> createdFilter)
measurementId
- limits
- createdFilter
- public DataPoint createDataPoint(java.util.Set<core.tut.pori.http.parameters.DateIntervalParameter.Interval> createdFilter, java.lang.String measurementId)
createdFilter
- measurementId
- public service.tut.pori.tasks.datatypes.Task setTaskDetails(service.tut.pori.tasks.datatypes.Task task, long backendId, java.util.Collection<java.lang.String> taskIds, java.lang.String taskType)
task
- backendId
- taskIds
- optional task identifiers (if null or empty, one id will be randomly generated)taskType
- public service.tut.pori.tasks.datatypes.Task.Visibility generateVisibility()
public service.tut.pori.tasks.datatypes.Task.State generateState()
public service.tut.pori.tasks.datatypes.TaskBackend generateTaskBackend(java.lang.Long backendId)
backendId
- if null, random id is generatedpublic service.tut.pori.tasks.datatypes.Task setSensorTaskDetails(SensorTask task)
task
- public java.util.List<Condition> createConditionList()
public Condition createCondition()
public java.lang.String createGUID()
Copyright © 2015-2018 Tampere University of Technology, Pori Department.