12#include "MantidAPI/DllConfig.h"
16#include <Poco/Net/SocketAddress.h>
49 virtual std::string
name()
const = 0;
63 virtual bool connect(
const Poco::Net::SocketAddress &address) = 0;
79 virtual void start(Types::Core::DateAndTime startTime = Types::Core::DateAndTime()) = 0;
166 virtual void setSpectra(
const std::vector<specnum_t> &specList) = 0;
IAlgorithm is the interface implemented by the Algorithm base class.
ILiveListener is the interface implemented by classes which connect directly to instrument data acqui...
virtual bool supportsHistory() const =0
Does this listener support requests for (recent) past data.
RunStatus
The possible run statuses (initial list taken from SNS SMS protocol) Values are assigned in transitio...
virtual std::string name() const =0
The name of this listener.
virtual bool isPaused() const
Whether the current run has been paused by a DAS annotation.
virtual bool connect(const Poco::Net::SocketAddress &address)=0
Connect to the specified address and start listening/buffering.
virtual int runNumber() const =0
Returns the run number of the current run.
virtual void setSpectra(const std::vector< specnum_t > &specList)=0
Sets a list of spectra to be extracted.
virtual ListenerState listenerState() const =0
Listener connection / health.
virtual std::shared_ptr< Workspace > extractData()=0
Get the data that's been buffered since the last call to this method (or since start() was called).
virtual bool buffersEvents() const =0
Does this listener buffer events (true) or histogram data (false)
virtual void start(Types::Core::DateAndTime startTime=Types::Core::DateAndTime())=0
Commence the collection of data from the DAS.
virtual bool isConnected()=0
Has the connection to the DAS been established? Could also be used to check for a continued connectio...
virtual bool dataReset()=0
Indicates that a reset (or period change?) signal has been received from the DAS.
virtual RunStatus runState() const
Current DAS run state (NoRun / JoiningRun / BeginRun / Running / EndRun), as last reported by the bac...
virtual void setAlgorithm(const class IAlgorithm &callingAlgorithm)=0
Allow listener to see calling algorithm.
virtual std::optional< RunStatus > lastTransition() const
The run-state transition (if any) that the most recent extractData() call consumed.
Property manager helper class.
std::shared_ptr< ILiveListener > ILiveListener_sptr
Shared pointer to an ILiveListener.
ListenerState
Listener connection / health, independent of the DAS run state.
@ Connected
Connected and reading.
@ Error
Background thread reported an exception.
@ ReadWait
Connected but paused at a run boundary (back-pressure)
@ Disconnected
Not connected to the DAS.
Helper class which provides the Collimation Length for SANS instruments.