SeaBreeze
LightSourceProtocolInterface.h
Go to the documentation of this file.
1 /***************************************************/
30 #ifndef LIGHTSOURCEPROTOCOLINTERFACE_H
31 #define LIGHTSOURCEPROTOCOLINTERFACE_H
32 
33 #include "common/buses/Bus.h"
36 
37 namespace seabreeze {
38 
40  public:
43 
44  virtual bool hasLightSourceEnable(const Bus &bus, int moduleIndex,
45  int lightSourceIndex) throw (ProtocolException) = 0;
46 
47  virtual bool isLightSourceEnabled(const Bus &bus, int moduleIndex,
48  int lightSourceIndex) throw (ProtocolException) = 0;
49 
50  virtual bool hasVariableIntensity(const Bus &bus, int moduleIndex,
51  int lightSourceIndex) throw (ProtocolException) = 0;
52 
53  virtual void setLightSourceEnable(const Bus &bus, int moduleIndex,
54  int lightSourceIndex, bool enable) throw (ProtocolException) = 0;
55  };
56 
58  public:
61 
62  virtual double getIntensity(const Bus &bus, int moduleIndex,
63  int lightSourceIndex) throw (ProtocolException) = 0;
64 
65  virtual void setIntensity(const Bus &bus, int moduleIndex,
66  int lightSourceIndex, double intensity) throw (ProtocolException) = 0;
67 
68  virtual double getIntensityMinimum(const Bus &bus, int moduleIndex,
69  int lightSourceIndex) = 0;
70 
71  virtual double getIntensityMaximum(const Bus &bus, int moduleIndex,
72  int lightSourceIndex) = 0;
73  };
74 
76  public:
79 
80  virtual int getIntensityCounts(const Bus &bus, int moduleIndex,
81  int lightSourceIndex) throw (ProtocolException) = 0;
82 
83  virtual int getIntensityMinimumCounts(const Bus &bus, int moduleIndex,
84  int lightSourceIndex) throw (ProtocolException) = 0;
85 
86  virtual int getIntensityMaximumCounts(const Bus &bus, int moduleIndex,
87  int lightSourceIndex) throw (ProtocolException) = 0;
88 
89  virtual void setIntensityCounts(const Bus &bus, int moduleIndex,
90  int lightSourceIndex, int counts) throw (ProtocolException) = 0;
91  };
92 
93 }
94 
95 #endif /* LIGHTSOURCEPROTOCOLINTERFACE_H */
Definition: Protocol.h:44
Definition: LightSourceProtocolInterface.h:39
Definition: ProtocolException.h:44
Definition: Bus.h:48
Encapsulates all SeaBreeze classes.
Definition: DeviceFactory.h:42
Definition: ProtocolHelper.h:46
Definition: LightSourceProtocolInterface.h:75
Definition: LightSourceProtocolInterface.h:57