nl.lxtreme.ols.test.data.project
Class StubDataSet

java.lang.Object
  extended by nl.lxtreme.ols.test.data.project.StubDataSet
All Implemented Interfaces:
nl.lxtreme.ols.api.data.DataSet

public class StubDataSet
extends Object
implements nl.lxtreme.ols.api.data.DataSet


Constructor Summary
StubDataSet()
          Creates a new StubDataSet instance.
 
Method Summary
 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)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StubDataSet

public StubDataSet()
Creates a new StubDataSet instance.

Method Detail

assertAbsoluteLength

public void assertAbsoluteLength(long aAbsLength)
Asserts the given absolute lengths is defined in the captured data.

Parameters:
aAbsLength - the absolute length that is expected.

assertChannelGroupDisabled

public void assertChannelGroupDisabled(int aGroupIdx)
Asserts the channel group with the given index is disabled in the captured data.

Parameters:
aGroupIdx - the group index.

assertChannelGroupEnabled

public void assertChannelGroupEnabled(int aGroupIdx)
Asserts the channel group with the given index is enabled in the captured data.

Parameters:
aGroupIdx - the group index.

assertCursorSet

public void assertCursorSet(int aCursorIdx,
                            long aCursorValue)
Asserts the cursor with the given index occur in the captured data.

Parameters:
aCursorIdx - the index of the cursor to assert;
aCursorValue - the expected value of the cursor to assert.

assertCursorUnset

public void assertCursorUnset(int aCursorIdx)
Asserts the cursor with the given index does NOT occur in the captured data.

Parameters:
aCursorIdx - the index of the cursor that should be unset.

assertTimeStamps

public void assertTimeStamps(long... aTimestamps)
Asserts the given timestamps occur in the captured data.

Parameters:
aTimestamps - the timestamps that are to be expected, starting at the first timestamp.

assertValues

public void assertValues(int... aValues)
Asserts the given values occur in the captured data.

Parameters:
aValues - the sample values that are to be expected, starting at the first value.

getCapturedData

public nl.lxtreme.ols.api.acquisition.AcquisitionResult getCapturedData()

Specified by:
getCapturedData in interface nl.lxtreme.ols.api.data.DataSet

getChannel

public nl.lxtreme.ols.api.data.Channel getChannel(int aIndex)

Specified by:
getChannel in interface nl.lxtreme.ols.api.data.DataSet

getChannels

public nl.lxtreme.ols.api.data.Channel[] getChannels()

Specified by:
getChannels in interface nl.lxtreme.ols.api.data.DataSet

getCursor

public nl.lxtreme.ols.api.data.Cursor getCursor(int aIndex)

Specified by:
getCursor in interface nl.lxtreme.ols.api.data.DataSet

getCursors

public nl.lxtreme.ols.api.data.Cursor[] getCursors()

Specified by:
getCursors in interface nl.lxtreme.ols.api.data.DataSet

isCursorsEnabled

public boolean isCursorsEnabled()

Specified by:
isCursorsEnabled in interface nl.lxtreme.ols.api.data.DataSet

setCapturedData

public void setCapturedData(nl.lxtreme.ols.api.acquisition.AcquisitionResult aCapturedData)
Sets capturedData to the given value.

Parameters:
aCapturedData - the capturedData to set.

setCursorsEnabled

public void setCursorsEnabled(boolean aEnabled)

Specified by:
setCursorsEnabled in interface nl.lxtreme.ols.api.data.DataSet


Copyright © 2012 L'Xtreme IT consultancy. All Rights Reserved.