public static enum ISamples.SignalType extends Enum<ISamples.SignalType>
Enum Constant and Description |
---|
Binary |
Event |
EventArray |
Float |
FloatArray |
Integer |
IntegerArray |
Logic |
Struct |
Text |
TextArray |
Unknown |
Modifier and Type | Method and Description |
---|---|
static boolean |
equals(ISamples.SignalType type,
Signal signal)
Returns true if signals signal type is same as type.
|
boolean |
equals(Signal signal)
Return true if signal has this signal type.
|
static ISamples.SignalType |
fromMember(IMemberDescriptor member)
Return the corresponding signal type of a struct member.
|
static String[] |
getOptions(boolean includeUnknown)
Returns all signal type options as string.
|
boolean |
isArray()
Returns true if signal type is an array type.
|
boolean |
isArrayOrStruct()
Returns true if signal type is an array or struct type.
|
boolean |
isSimple()
Returns true if signal type is an array type.
|
static ISamples.SignalType |
parse(String signalType)
Parses the signal type from a string representation.
|
static String |
toString(ISamples.SignalType type)
Returns the string representation of a signal type.
|
static ISamples.SignalType |
valueOf(Signal signal)
Extract the signal type from signal.
|
static ISamples.SignalType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ISamples.SignalType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ISamples.SignalType Unknown
public static final ISamples.SignalType Event
public static final ISamples.SignalType Integer
public static final ISamples.SignalType Logic
public static final ISamples.SignalType Float
public static final ISamples.SignalType Text
public static final ISamples.SignalType Binary
public static final ISamples.SignalType Struct
public static final ISamples.SignalType EventArray
public static final ISamples.SignalType IntegerArray
public static final ISamples.SignalType FloatArray
public static final ISamples.SignalType TextArray
public static ISamples.SignalType[] values()
for (ISamples.SignalType c : ISamples.SignalType.values()) System.out.println(c);
public static ISamples.SignalType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static ISamples.SignalType valueOf(Signal signal)
signal
- Signal to extract type.public static ISamples.SignalType fromMember(IMemberDescriptor member)
member
- a member descriptor.public static ISamples.SignalType parse(String signalType)
signalType
- String representation of a signal type.public boolean equals(Signal signal)
signal
- Signal to compare.public boolean isSimple()
public boolean isArray()
public boolean isArrayOrStruct()
public static boolean equals(ISamples.SignalType type, Signal signal)
type
- Signal type enumeration to compare.signal
- Signal to compare.public static String toString(ISamples.SignalType type)
type
- A signal type enumeration.public static String[] getOptions(boolean includeUnknown)
includeUnknown
- TODO