public class StubDataSet extends Object implements nl.lxtreme.ols.api.data.DataSet
Constructor and Description |
---|
StubDataSet()
Creates a new StubDataSet instance.
|
Modifier and Type | Method and Description |
---|---|
void |
assertAbsoluteLength(long aAbsLength)
Asserts the given absolute lengths is defined in the captured data.
|
void |
assertChannelGroupDisabled(int aGroupIdx)
Asserts the channel group with the given index is disabled in the captured
data.
|
void |
assertChannelGroupEnabled(int aGroupIdx)
Asserts the channel group with the given index is enabled in the captured
data.
|
void |
assertCursorSet(int aCursorIdx,
long aCursorValue)
Asserts the cursor with the given index occur in the captured data.
|
void |
assertCursorUnset(int aCursorIdx)
Asserts the cursor with the given index does NOT occur in the captured
data.
|
void |
assertTimeStamps(long... aTimestamps)
Asserts the given timestamps occur in the captured data.
|
void |
assertValues(int... aValues)
Asserts the given values occur in the captured data.
|
nl.lxtreme.ols.api.acquisition.AcquisitionResult |
getCapturedData() |
nl.lxtreme.ols.api.data.Channel |
getChannel(int aIndex) |
nl.lxtreme.ols.api.data.Channel[] |
getChannels() |
nl.lxtreme.ols.api.data.Cursor |
getCursor(int aIndex) |
nl.lxtreme.ols.api.data.Cursor[] |
getCursors() |
boolean |
isCursorsEnabled() |
void |
setCapturedData(nl.lxtreme.ols.api.acquisition.AcquisitionResult aCapturedData)
Sets capturedData to the given value.
|
void |
setCursorsEnabled(boolean aEnabled) |
public void assertAbsoluteLength(long aAbsLength)
aAbsLength
- the absolute length that is expected.public void assertChannelGroupDisabled(int aGroupIdx)
aGroupIdx
- the group index.public void assertChannelGroupEnabled(int aGroupIdx)
aGroupIdx
- the group index.public void assertCursorSet(int aCursorIdx, long aCursorValue)
aCursorIdx
- the index of the cursor to assert;aCursorValue
- the expected value of the cursor to assert.public void assertCursorUnset(int aCursorIdx)
aCursorIdx
- the index of the cursor that should be unset.public void assertTimeStamps(long... aTimestamps)
aTimestamps
- the timestamps that are to be expected, starting at the first
timestamp.public void assertValues(int... aValues)
aValues
- the sample values that are to be expected, starting at the first
value.public nl.lxtreme.ols.api.acquisition.AcquisitionResult getCapturedData()
getCapturedData
in interface nl.lxtreme.ols.api.data.DataSet
public nl.lxtreme.ols.api.data.Channel getChannel(int aIndex)
getChannel
in interface nl.lxtreme.ols.api.data.DataSet
public nl.lxtreme.ols.api.data.Channel[] getChannels()
getChannels
in interface nl.lxtreme.ols.api.data.DataSet
public nl.lxtreme.ols.api.data.Cursor getCursor(int aIndex)
getCursor
in interface nl.lxtreme.ols.api.data.DataSet
public nl.lxtreme.ols.api.data.Cursor[] getCursors()
getCursors
in interface nl.lxtreme.ols.api.data.DataSet
public boolean isCursorsEnabled()
isCursorsEnabled
in interface nl.lxtreme.ols.api.data.DataSet
public void setCapturedData(nl.lxtreme.ols.api.acquisition.AcquisitionResult aCapturedData)
aCapturedData
- the capturedData to set.public void setCursorsEnabled(boolean aEnabled)
setCursorsEnabled
in interface nl.lxtreme.ols.api.data.DataSet
Copyright © 2015 L'Xtreme IT consultancy. All rights reserved.