Package org.sensorhub.api.command
Class CommandStreamInfo
java.lang.Object
org.sensorhub.api.command.CommandStreamInfo
- All Implemented Interfaces:
ICommandStreamInfo
,IResource
Immutable object containing information about a command stream/interface.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
CommandStreamInfo.CommandStreamInfoBuilder<B extends CommandStreamInfo.CommandStreamInfoBuilder<B,
T>, T extends CommandStreamInfo> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
protected String
protected DataEncoding
protected DataComponent
protected DataEncoding
protected DataComponent
protected FeatureId
protected TimeExtent
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.sensorhub.api.command.ICommandStreamInfo
getFullName, hasInlineResult
-
Field Details
-
name
-
description
-
systemID
-
validTime
-
recordStruct
-
recordEncoding
-
resultStruct
-
resultEncoding
-
-
Constructor Details
-
CommandStreamInfo
public CommandStreamInfo()
-
-
Method Details
-
getSystemID
- Specified by:
getSystemID
in interfaceICommandStreamInfo
- Returns:
- The identifier of the system that exposes this command stream
-
getControlInputName
- Specified by:
getControlInputName
in interfaceICommandStreamInfo
- Returns:
- The name of the system control input that receives commands from this stream
-
getName
-
getDescription
- Specified by:
getDescription
in interfaceIResource
- Returns:
- A short description of the resource
-
getRecordStructure
- Specified by:
getRecordStructure
in interfaceICommandStreamInfo
- Returns:
- The structure of the command parameters
-
getRecordEncoding
- Specified by:
getRecordEncoding
in interfaceICommandStreamInfo
- Returns:
- The recommended encoding for the command parameters
-
getValidTime
- Specified by:
getValidTime
in interfaceICommandStreamInfo
- Returns:
- The time of validity of this command stream. This corresponds to the time during which the corresponding control input actually existed.
-
getExecutionTimeRange
- Specified by:
getExecutionTimeRange
in interfaceICommandStreamInfo
- Returns:
- The range of actuation times of commands that are part of this command stream, or null if no commands have been recorded yet.
-
getIssueTimeRange
- Specified by:
getIssueTimeRange
in interfaceICommandStreamInfo
- Returns:
- The range of issue times of commands that are part of this command stream, or null if no commands have been recorded yet.
-
getResultStructure
- Specified by:
getResultStructure
in interfaceICommandStreamInfo
- Returns:
- The structure of the inline command result data, or null if no inline result is generated by this command channel.
-
getResultEncoding
- Specified by:
getResultEncoding
in interfaceICommandStreamInfo
- Returns:
- The recommended encoding for the inline command result data, or null if no inline result is generated by this command channel.
-
hasResult
public boolean hasResult()- Specified by:
hasResult
in interfaceICommandStreamInfo
- Returns:
- True if this command channel generates command results, false otherwise. Note that this returns true whether results are generated inline or not.
-