org.simantics.databoard.datasource
Class ExampleDatasource

java.lang.Object
  extended by org.simantics.databoard.datasource.StepwiseDatasource
      extended by org.simantics.databoard.datasource.ExampleDatasource
All Implemented Interfaces:
IStepwiseDatasource

public class ExampleDatasource
extends StepwiseDatasource

Test Datasource provides 5 example values, one of which is time. The implementation is an accessor that follows Datasource contract. New values are spawned on #step(). Variables: SINE - Double(range=[-1..1]) RAMP - Double(range=[0..100]) ARRAY - int[3] VECTOR - { x: Double; y: Double; z: Double } TIME - Double(unit="s") FOLDER - no value, has child RAMP

Author:
Toni Kalajainen

Nested Class Summary
static class ExampleDatasource.VectorRecord
           
 
Nested classes/interfaces inherited from class org.simantics.databoard.datasource.StepwiseDatasource
StepwiseDatasource.Node
 
Nested classes/interfaces inherited from interface org.simantics.databoard.datasource.IStepwiseDatasource
IStepwiseDatasource.DatasourceListener
 
Constructor Summary
ExampleDatasource()
           
 
Method Summary
 void doStep()
           
 
Methods inherited from class org.simantics.databoard.datasource.StepwiseDatasource
addListener, addNode, addRoot, getAll, getChildren, getLabel, getLabels, getNodeType, getValue, hasNode, removeListener, setValue, step
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExampleDatasource

public ExampleDatasource()
Method Detail

doStep

public void doStep()
            throws DatasourceException
Throws:
DatasourceException