public interface IReadableSamples extends IPackedSamples, ISampleConverter
ISamples.ProcessType, ISamples.SignalDescriptor, ISamples.SignalType, ISamples.TagDomain
HEAD_BLOCKSIZE, HEAD_FLAGS_LENGTH, HEAD_FLAGS_POS, HEAD_FRAGSIZE_LENGTH, HEAD_ID_LENGTH, HEAD_ID_POS, HEAD_LENGTH, HEAD_SAMPLES_PER_FRAGMENT_POS, HEAD_VERSION_LENGTH, HEAD_VERSION_POS, HEADV2_LENGTH, ID, VERSION, VERSION_3, VERSION_4
ACCURACY_DEFAULT, AT_ANY, AT_ASSOC, AT_ASSOC_DELTA, AT_ASSOC_DELTA_REV, AT_ASSOC_POS, AT_ASSOC_POS_REV, AT_LABEL, AT_MULT, AT_RELATION, CONTENT_CHART, CONTENT_DEFAULT, CONTENT_EVENT, CONTENT_EVENTPARM, CONTENT_GANTT, CONTENT_IMAGE, CONTENT_LABEL, CONTENT_LOG, CONTENT_STATE, CONTENT_TRANSACTION, COUNT_FORMATS, DEFAULT_PLUS_LENGTH, DF_BINARY, DF_ENUM_EVENT, DF_EVENT, DF_FLOAT, DF_INTEGER, DF_LOGIC_16, DF_LOGIC_2, DF_LOGIC_4, DF_NONE, DF_STRUCT, DF_TEXT, ENUM_ASSOC_DOMAINBASE, ENUM_ASSOC_STYLE, ENUM_ASSOC_TARGET, ENUM_GLOBAL, ENUM_LABEL_STYLE, ENUM_MAX, ENUM_MEMBER_0, ENUM_MIN, FLOAT_ACCURACY_32, FLOAT_ACCURACY_64, FLOAT_ACCURACY_BIG, FLOAT_ACCURACY_DEFAULT, FORMAT_ASCII, FORMAT_BINARY, FORMAT_BOOLEAN, FORMAT_COLLECTION_DEFAULT, FORMAT_COLLECTION_KEY_VALUES, FORMAT_COLLECTION_MASK, FORMAT_COLLECTION_MEMBER_0, FORMAT_COLLECTION_MEMBER_1, FORMAT_COLLECTION_MEMBER_2, FORMAT_COLLECTION_MEMBER_3, FORMAT_COLLECTION_VALUES_ONLY, FORMAT_DECIMAL, FORMAT_DECIMAL_F_MAX, FORMAT_DECIMAL_F_MIN, FORMAT_DECIMAL_F0, FORMAT_DECIMAL_F1, FORMAT_DECIMAL_F2, FORMAT_DECIMAL_F3, FORMAT_DECIMAL_F4, FORMAT_DECIMAL_F5, FORMAT_DECIMAL_F6, FORMAT_DECIMAL_F7, FORMAT_DEFAULT, FORMAT_DELTA_DOMAIN, FORMAT_DELTA_VALUE, FORMAT_EVENT, FORMAT_GROUP_INDEX, FORMAT_GROUP_ORDER, FORMAT_HEXADECIMAL, FORMAT_INDEX, FORMAT_MEMBER_0, FORMAT_MEMBER_1, FORMAT_NONE, FORMAT_OCTAL, FORMAT_R4, FORMAT_R5, FORMAT_R6, FORMAT_R7, FORMAT_R8, FORMAT_RELATION_MAX, FORMAT_RELATION_MIN, FORMAT_SIMPLE_MAX, FORMAT_SIMPLE_MIN, FORMAT_SL_TEXT, FORMAT_TEXT, FORMAT_VALUE_DEFAULT, FORMAT_VALUE_MASK, formatCollectionLabels, formatCollectionOptions, formatValueLabels, formatValueOptions, GO_FIRST, GO_INTER, GO_LAST, GO_NONE, GROUP_ORDER_LABELS, INTEGER_ACCURACY_32, INTEGER_ACCURACY_64, INTEGER_ACCURACY_BIG, INTEGER_ACCURACY_DEFAULT, LOGIC_L16_BYTE_FILL, LOGIC_L2_BYTE_FILL, LOGIC_L4_BYTE_FILL, LOGIC_PACK_0, LOGIC_PACK_1, LOGIC_PACK_RIGHT_ALLIGNED, MASK_FORMAT_0_A, MASK_FORMAT_0_AT, MASK_FORMAT_0_DF, MASK_FORMAT_0_GO, MASK_FORMAT_0_N, MASK_FORMAT_0_T, MASK_FORMAT_0_XDF, MASK_FORMAT_1_S0, MASK_FORMAT_1_S0_PLUS, MASK_FORMAT_1_TF, MASK_PLUS, MASK_PLUS_DATA, MAX_DATA, MAX_LAYERS, MAX_SAMPLE_SIZE, MAX_SCALE, SHIFT_FORMAT_0_D, SHIFT_FORMAT_0_DF, SHIFT_FORMAT_0_GO, SHIFT_FORMAT_0_XDF, SHIFT_FORMAT_1_TF, STATE_0_BITS, STATE_1_BITS, STATE_D_BITS, STATE_H_BITS, STATE_J_BITS, STATE_K_BITS, STATE_L_BITS, STATE_LC_DIGITS, STATE_LEVEL_16, STATE_LEVEL_2, STATE_LEVEL_4, STATE_LEVEL_NONE, STATE_M_BITS, STATE_N_BITS, STATE_O_BITS, STATE_P_BITS, STATE_U_BITS, STATE_UC_DIGITS, STATE_UNKNOWN_BITS, STATE_W_BITS, STATE_X_BITS, STATE_Z_BITS, STRUCT_MASK_TYPE, STRUCT_MOD_HIDDEN, STRUCT_MOD_VALID_UNTIL_CHANGE, STRUCT_TYPE_BINARY, STRUCT_TYPE_BOOLEAN, STRUCT_TYPE_ENUM, STRUCT_TYPE_FLOAT, STRUCT_TYPE_INTEGER, STRUCT_TYPE_LOCAL_ENUM, STRUCT_TYPE_MAX, STRUCT_TYPE_MERGE_ENUM, STRUCT_TYPE_STRUCT, STRUCT_TYPE_TEXT, STRUCT_TYPE_UNKNOWN, UF_ABSOLUTE_8, UF_DELTA_0, UF_DELTA_1, UF_DELTA_2, UF_DELTA_4, UF_DELTA_8, UF_DELTA_PREVIOUS, XDF_FLOAT_32, XDF_FLOAT_64, XDF_FLOAT_BIG, XDF_FLOAT_DEFAULT, XDF_INTEGER_32, XDF_INTEGER_64, XDF_INTEGER_BIG, XDF_INTEGER_DEFAULT, XDF_LOGIC_PACK_0, XDF_LOGIC_PACK_1, XDF_LOGIC_PACK_RIGHT_ALLIGNED, XDF_NONE
Modifier and Type | Method and Description |
---|---|
java.util.List<IAttachment> |
attachmentsAt(int idx,
int type)
Return all attachments of sample at index 'idx.
|
java.util.List<IAttachment> |
attachmentsAtGroup(int group,
int type)
Returns group value for group id 'group'.
|
BigDecimal |
bigDecimalValueAt(int idx)
Returns sample at index idx as BigDecimal value.
|
BigInteger |
bigIntValueAt(int idx)
Returns sample at index idx as BigInteger value.
|
byte[] |
bytesValueAt(int idx)
Returns sample at index idx as byte[] value.
|
CompoundValue |
compoundAt(int idx)
Returns sample value and and all surrounding informations, like position, group, order, layer and index.
|
CompoundValue |
compoundAt(int idx,
boolean attachments)
Returns sample value and and all surrounding informations, like position, group, order, layer and index.
|
int |
defaultFormatAt(int idx)
Returns the default format at index 'idx'.
|
double |
doubleValueAt(int idx)
Returns sample at index idx as double value.
|
boolean |
ensureSettled(de.toem.pattern.threading.IProgress p)
Ensure settlement of samples data.
|
Enumeration |
enumValueAt(int idx)
Returns sample at index idx as Enumeration value.
|
String |
fasciiAt(int idx)
Format sample idx using ascii format.
|
String |
fbinAt(int idx)
Format sample idx using bin format.
|
String |
fdecAt(int idx)
Format sample idx using dec format.
|
String |
fhexAt(int idx)
Format sample idx using hex format.
|
float |
floatValueAt(int idx)
Returns sample at index idx as float value.
|
String |
foctAt(int idx)
Format sample idx using oct format.
|
String |
formatAt(int idx,
int format)
Format sample idx using format 'format' ( ISample.FORMAT_...).
|
int |
getCount()
Returns the no of available samples.
|
java.util.List<Enumeration> |
getEnums(int enumerationType)
Returns all enumerations of given type.
|
int |
getGroups()
Samples may be organized in groups (e.g transactions).
|
IMemberDescriptor |
getMemberDescriptor(Object memberIdentifier)
Returns the member descriptor of the given member.
|
java.util.List<IMemberDescriptor> |
getMemberDescriptors()
Returns all member descriptors.
|
java.util.List<Enumeration> |
getMemberEnums(Object memberIdentifier)
Returns the enumerations of the given member.
|
ISamplesProducer |
getProducer()
Returns the actual producer.
|
ISamplesReader |
getReader()
Returns the actual reader.
|
de.toem.impulse.samples.base.SamplesStat |
getStat(int idx0,
int idxN,
int content)
Returns a stat object for all samples starting at idx0 and including final sample idx1.
|
int |
groupAt(int idx)
Return group id for sample idx or -1 for no group.
|
int |
indexAt(DomainValue position)
Returns the sample index at position.
|
int |
indexAt(long units)
Returns the sample index at position 'units'.
|
int |
indexAtGroup(int group)
Returns the first sample index of group 'group'.
|
int |
intValueAt(int idx)
Returns sample at index idx as int value.
|
boolean |
isConflictAt(int idx) |
boolean |
isEdgeAt(int idx,
int edge)
Tries to detect an edge at index idx
|
boolean |
isEdgeAt(int idx,
int edge,
ILogicDetector detector)
Tries to detect an edge at index idx
|
boolean |
isEmpty()
Returns true if no sample available.
|
boolean |
isHighAt(int idx)
Tries to detect the logic state high at index idx
|
boolean |
isHighAt(int idx,
ILogicDetector detector)
Tries to detect the logic state high at index idx
|
boolean |
isLowAt(int idx)
Tries to detect the logic state low at index idx
|
boolean |
isLowAt(int idx,
ILogicDetector detector)
Tries to detect the logic state low at index idx
|
boolean |
isNoneAt(int idx)
Return true if sample idx is a 'none' sample (no signal information).
|
boolean |
isSettled()
Returns true if 'settled' (data has been fetched and is decoded)
|
boolean |
isSettling()
Returns true if settling process is ongoing (e.g. loading/calculation).
|
boolean |
isTaggedAt(int idx)
Return true if sample idx is a 'tagged' sample (use-case dependend).
|
int |
logicStateAt(int idx)
Returns sample at index idx as Logic state.
|
Logic |
logicValueAt(int idx)
Returns sample at index idx as Logic value.
|
long |
longValueAt(int idx)
Returns sample at index idx as long value.
|
java.util.List<Object> |
membersWithContent(String content)
Returns tall member identifiers with members that have contains the given content.
|
Number |
numberValueAt(int idx)
Returns sample at index idx as Number value.
|
int |
orderAt(int idx)
Return group order (sample order in one group) id for sample idx or 0 for no group.
|
CompoundPack |
packedAt(int idx)
Returns sample value in packed form and and all surrounding informations, like position, group, order, layer and index.
|
DomainValue |
positionAt(int idx)
Return the position at sample index.
|
String |
stringValueAt(int idx)
Returns sample at index idx as String value.
|
Struct |
structValueAt(int idx)
Returns sample at index idx as Struct value.
|
long |
unitsAt(int idx)
Return the position at sample index (to be multiplied with the domain base).
|
Object |
valueAt(int idx)
Returns the raw (no interpretation or conversion) sample value at index idx.
|
GroupedValue |
valuesAtGroup(int group)
Returns group value for group id 'group'.
|
GroupedValue |
valuesAtGroup(int group,
boolean attachments)
Returns group value for group id 'group'.
|
getData, getData, getError, getId, getLegend, getMarkers, getMessage, getName, getPackVersion, getSamples, getSamplesDomainBase, getService, setData, setData
getAccuracy, getContent, getDomainBase, getEnd, getEndUnits, getFlags, getFormat, getProcessType, getRate, getRateUnits, getRelease, getScale, getSignalDescriptor, getSignalType, getStart, getStartUnits, getTagDomain, hasConflict, hasTag, isMonotonous, isReleased, isVolatile
bigDecimalValue, bigIntValue, booleanValue, bytesValue, charValue, doubleValue, enumValue, floatValue, format, format, getConverterConfiguration, intValue, isHigh, isLow, logicState, logicValue, longValue, numberValue, stringValue, stringValue, structValue
ISamplesReader getReader()
ISamplesProducer getProducer()
boolean isEmpty()
int getCount()
int getGroups()
boolean isSettled()
boolean ensureSettled(de.toem.pattern.threading.IProgress p)
boolean isSettling()
int indexAt(long units)
Example (Java) int idx = in0.indexAt( 2000); System.out.println(in0.positionAt(idx)); Example (JavaScript) var idx = in0.indexAt( 2000); console.println(in0.positionAt( idx));
units
- Domain position as a multiple of its domain base (e.g. domain base=1ms; units = 100; -> domain value = 100ms).int indexAt(DomainValue position)
Example (Java) DomainValue position = DomainValue.valueOf("10ms"); System.out.println(in0.indexAt( position)); Example (JavaScript) var position = DomainValue.valueOf("10ms"); console.println(in0.indexAt( position));
position
- Domain position in from of a DomainValue object (combination of domain base and factor).long unitsAt(int idx)
Example (Java) System.out.println(in0.unitsAt( 4)); Example (JavaScript) console.println(in0.unitsAt( 4));
idx
- Sample index (0..getCount()-1)DomainValue positionAt(int idx)
Example (Java) System.out.println(in0.positionAt( 4)); Example (JavaScript) console.println(in0.positionAt( 4));
idx
- Sample index (0..getCount()-1)boolean isNoneAt(int idx)
idx
- Sample index (0..getCount()-1)boolean isTaggedAt(int idx)
idx
- Sample index (0..getCount()-1)boolean isConflictAt(int idx)
Object valueAt(int idx)
idx
- Sample index (0..getCount()-1)CompoundValue compoundAt(int idx)
idx
- Sample index (0..getCount()-1)CompoundValue compoundAt(int idx, boolean attachments)
idx
- Sample index (0..getCount()-1)attachments
- Include attachments if trueCompoundPack packedAt(int idx)
idx
- Sample index (0..getCount()-1)java.util.List<IAttachment> attachmentsAt(int idx, int type)
idx
- Sample index (0..getCount()-1)type
- -1 for all attachments or typeLogic logicValueAt(int idx)
idx
- Sample index (0..getCount()-1)int logicStateAt(int idx)
idx
- Sample index (0..getCount()-1)boolean isEdgeAt(int idx, int edge, ILogicDetector detector)
idx
- Sample index (0..getCount()-1)edge
- 1 if rising edge; -1 if falling edge; 0 if anydetector
- Future usageboolean isEdgeAt(int idx, int edge)
idx
- Sample index (0..getCount()-1)edge
- 1 if rising edge; -1 if falling edge; 0 if anyboolean isHighAt(int idx, ILogicDetector detector)
idx
- Sample index (0..getCount()-1)detector
- Future usageboolean isHighAt(int idx)
idx
- Sample index (0..getCount()-1)boolean isLowAt(int idx, ILogicDetector detector)
idx
- Sample index (0..getCount()-1)detector
- Future usageboolean isLowAt(int idx)
idx
- Sample index (0..getCount()-1)Number numberValueAt(int idx)
idx
- Sample index (0..getCount()-1)float floatValueAt(int idx)
idx
- Sample index (0..getCount()-1)double doubleValueAt(int idx)
idx
- Sample index (0..getCount()-1)BigDecimal bigDecimalValueAt(int idx)
idx
- Sample index (0..getCount()-1)long longValueAt(int idx)
idx
- Sample index (0..getCount()-1)int intValueAt(int idx)
idx
- Sample index (0..getCount()-1)BigInteger bigIntValueAt(int idx)
idx
- Sample index (0..getCount()-1)Struct structValueAt(int idx)
idx
- Sample index (0..getCount()-1)String stringValueAt(int idx)
idx
- Sample index (0..getCount()-1)Enumeration enumValueAt(int idx)
idx
- Sample index (0..getCount()-1)byte[] bytesValueAt(int idx)
idx
- Sample index (0..getCount()-1)String formatAt(int idx, int format)
idx
- Sample index (0..getCount()-1)format
- Format specifier as defined in ISample.FORMAT_.. (e.g. ISample.FORMAT_HEXADECIMAL)int defaultFormatAt(int idx)
idx
- Sample index (0..getCount()-1)String fhexAt(int idx)
String fdecAt(int idx)
String foctAt(int idx)
String fbinAt(int idx)
String fasciiAt(int idx)
int groupAt(int idx)
idx
- Sample index (0..getCount()-1)int orderAt(int idx)
idx
- Sample index (0..getCount()-1)GroupedValue valuesAtGroup(int group)
group
- Group index (0..getGroups()-1)GroupedValue valuesAtGroup(int group, boolean attachments)
group
- Group index (0..getGroups()-1)attachments
- Include attachments if truejava.util.List<IAttachment> attachmentsAtGroup(int group, int type)
group
- Group index (0..getGroups()-1)type
- -1 for all attachments or typeint indexAtGroup(int group)
group
- Group index/id (0..getGroups()-1)java.util.List<IMemberDescriptor> getMemberDescriptors()
java.util.List<Enumeration> getEnums(int enumerationType)
IMemberDescriptor getMemberDescriptor(Object memberIdentifier)
memberIdentifier
- Member identifier (see below).
Member identifier may be one of:
String memberName
Integer memberId
Arrays: memberId==memberIndex
Struct: memberId!=memberIndexjava.util.List<Enumeration> getMemberEnums(Object memberIdentifier)
memberIdentifier
- Member identifier (see below).
Member identifier may be one of:
String memberName
Integer memberId
Arrays: memberId==memberIndex
Struct: memberId!=memberIndexjava.util.List<Object> membersWithContent(String content)
memberIdentifier
- Member identifier (see below).
Member identifier may be one of:
String memberName
Integer memberId
Arrays: memberId==memberIndex
Struct: memberId!=memberIndexde.toem.impulse.samples.base.SamplesStat getStat(int idx0, int idxN, int content)
idx0
- First sample index (0..getCount()-1)0idxN
- Last sample index (0..getCount()-1)1content
- Stat information to be extracted.