public class SignalDescription
extends java.lang.Object
Signals from a Frame.| Modifier and Type | Class and Description |
|---|---|
static class |
SignalDescription.Type |
| Modifier and Type | Field and Description |
|---|---|
static java.util.Comparator<SignalDescription> |
nameComparator |
| Modifier | Constructor and Description |
|---|---|
protected |
SignalDescription(MessageDescription description) |
protected |
SignalDescription(MultiplexDescription multiplexDescription,
MessageDescription description,
long multiplexCount) |
| Modifier and Type | Method and Description |
|---|---|
void |
addConsumer(Node consumer) |
void |
addLabel(Label l) |
Signal |
decodeData(byte[] data)
Decode the binary data according to the signal information in this
description. may return null if this is a multiplexed signal and the
multiplex count does not match.
|
protected static long |
extractBits(byte[] data,
int offset,
int length,
java.nio.ByteOrder order)
This function extracts a given number of bits out of a byte array starting at a
given position.
|
java.util.Set<Label> |
getAllLabels() |
java.nio.ByteOrder |
getByteOrder() |
java.util.Set<Node> |
getConsumers() |
MessageDescription |
getDescription() |
double |
getIntercept() |
int |
getLength() |
MessageDescription |
getMessageDescription() |
long |
getMultiplexCount() |
MultiplexDescription |
getMultiplexDescription() |
java.lang.String |
getName() |
java.lang.String |
getNotes() |
int |
getOffset() |
java.lang.Object |
getParent() |
double |
getSlope() |
SignalDescription.Type |
getType() |
java.lang.String |
getUnit() |
boolean |
isMultiplexed() |
void |
setByteOrder(java.nio.ByteOrder byteOrder) |
void |
setIntercept(double intercept) |
void |
setLength(int length) |
void |
setName(java.lang.String name) |
void |
setNotes(java.lang.String notes) |
void |
setOffset(int offset) |
void |
setSlope(double slope) |
void |
setType(SignalDescription.Type type) |
void |
setUnit(java.lang.String unit) |
public static final java.util.Comparator<SignalDescription> nameComparator
protected SignalDescription(MessageDescription description)
protected SignalDescription(MultiplexDescription multiplexDescription, MessageDescription description, long multiplexCount)
public void addLabel(Label l)
public java.util.Set<Label> getAllLabels()
public MessageDescription getDescription()
public long getMultiplexCount()
public MessageDescription getMessageDescription()
public MultiplexDescription getMultiplexDescription()
public boolean isMultiplexed()
public java.lang.Object getParent()
public java.util.Set<Node> getConsumers()
public void addConsumer(Node consumer)
public java.nio.ByteOrder getByteOrder()
public void setByteOrder(java.nio.ByteOrder byteOrder)
public int getLength()
public void setLength(int length)
public java.lang.String getName()
public void setName(java.lang.String name)
public int getOffset()
public void setOffset(int offset)
public SignalDescription.Type getType()
public void setType(SignalDescription.Type type)
public double getIntercept()
public void setIntercept(double intercept)
public java.lang.String getNotes()
public void setNotes(java.lang.String notes)
public double getSlope()
public void setSlope(double slope)
public java.lang.String getUnit()
public void setUnit(java.lang.String unit)
public Signal decodeData(byte[] data) throws DescriptionException
data - DescriptionExceptionprotected static long extractBits(byte[] data,
int offset,
int length,
java.nio.ByteOrder order)
throws DescriptionException
data - The byte array to work withoffset - The first bit to be extractedlength - The number of bits that have to be extractedorder - The ByteOrder for the extractionDescriptionExceptionData In Motion Consulting GmbH