Class SimulationEventStream
- java.lang.Object
-
- org.epics.archiverappliance.utils.simulation.SimulationEventStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Iterable<Event>
,EventStream
,RemotableOverRaw
public class SimulationEventStream extends Object implements EventStream, RemotableOverRaw
An EventStream that backed by a generator.- Author:
- mshankar
-
-
Constructor Summary
Constructors Constructor Description SimulationEventStream(ArchDBRTypes type, SimulationValueGenerator valueGenerator)
SimulationEventStream(ArchDBRTypes type, SimulationValueGenerator valueGenerator, short year)
SimulationEventStream(ArchDBRTypes type, SimulationValueGenerator valueGenerator, short startyear, short endyear)
-
Method Summary
Modifier and Type Method Description void
close()
RemotableEventStreamDesc
getDescription()
Iterator<Event>
iterator()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
SimulationEventStream
public SimulationEventStream(ArchDBRTypes type, SimulationValueGenerator valueGenerator)
-
SimulationEventStream
public SimulationEventStream(ArchDBRTypes type, SimulationValueGenerator valueGenerator, short year)
-
SimulationEventStream
public SimulationEventStream(ArchDBRTypes type, SimulationValueGenerator valueGenerator, short startyear, short endyear)
-
-
Method Detail
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
getDescription
public RemotableEventStreamDesc getDescription()
- Specified by:
getDescription
in interfaceEventStream
- Specified by:
getDescription
in interfaceRemotableOverRaw
-
-