Commit d843e3343436e9895bec6dee43d798fce8c6bde5
1 parent
ee42fd67
Exists in
dev
renommé base.py en device_controller.py (plus clair)
Showing
15 changed files
with
22 additions
and
447 deletions
Show diff stats
src/core/pyros_django/agent/AgentDevice.py
... | ... | @@ -13,7 +13,7 @@ from common.models import AgentDeviceStatus, Command, get_or_create_unique_row_f |
13 | 13 | |
14 | 14 | |
15 | 15 | sys.path.append("../../..") |
16 | -from device_controller.abstract_component.base import DeviceControllerAbstract | |
16 | +from device_controller.abstract_component.device_controller import DeviceControllerAbstract | |
17 | 17 | |
18 | 18 | ##log = L.setupLogger("AgentXTaskLogger", "AgentX") |
19 | 19 | ... | ... |
src/core/pyros_django/common/models.py
... | ... | @@ -13,7 +13,7 @@ from model_utils import Choices |
13 | 13 | # DeviceCommand is used by class Command |
14 | 14 | import sys |
15 | 15 | sys.path.append("../../..") |
16 | -from src.device_controller.abstract_component.base import DeviceCommand | |
16 | +from src.device_controller.abstract_component.device_controller import DeviceCommand | |
17 | 17 | |
18 | 18 | ''' |
19 | 19 | NOT USED - to be removed | ... | ... |
src/core/pyros_django/common/models_ORIG.py deleted
... | ... | @@ -1,425 +0,0 @@ |
1 | -# This is an auto-generated Django model module. | |
2 | -# You'll have to do the following manually to clean this up: | |
3 | -# * Rearrange models' order | |
4 | -# * Make sure each model has one field with primary_key=True | |
5 | -# * Make sure each ForeignKey has `on_delete` set to the desired behavior. | |
6 | -# * Remove `managed = False` lines if you wish to allow Django to create, modify, and delete the table | |
7 | -# Feel free to rename the models, but don't rename db_table values or | |
8 | -# field names. | |
9 | -from __future__ import unicode_literals | |
10 | - | |
11 | -from django.db import models | |
12 | - | |
13 | - | |
14 | -class Album(models.Model): | |
15 | - sequence = models.ForeignKey('Sequence', models.DO_NOTHING) | |
16 | - detector = models.ForeignKey('Detector', models.DO_NOTHING) | |
17 | - name = models.CharField(max_length=45, blank=True, null=True) | |
18 | - desc = models.TextField(blank=True, null=True) | |
19 | - created = models.DateTimeField(blank=True, null=True) | |
20 | - updated = models.DateTimeField(blank=True, null=True) | |
21 | - | |
22 | - class Meta: | |
23 | - managed = False | |
24 | - db_table = 'album' | |
25 | - | |
26 | - | |
27 | -class Alert(models.Model): | |
28 | - request = models.ForeignKey('Request', models.DO_NOTHING) | |
29 | - strategyobs = models.ForeignKey('Strategyobs', models.DO_NOTHING) | |
30 | - voevent_xml = models.TextField(blank=True, null=True) | |
31 | - type = models.CharField(max_length=45, blank=True, null=True) | |
32 | - client = models.CharField(max_length=45, blank=True, null=True) | |
33 | - burst_jd = models.CharField(max_length=45, blank=True, null=True) | |
34 | - burst_ra = models.CharField(max_length=45, blank=True, null=True) | |
35 | - burst_dec = models.CharField(max_length=45, blank=True, null=True) | |
36 | - equinox = models.CharField(max_length=45, blank=True, null=True) | |
37 | - jd_pkt = models.IntegerField(blank=True, null=True) | |
38 | - jd_send = models.IntegerField(blank=True, null=True) | |
39 | - jd_received = models.IntegerField(blank=True, null=True) | |
40 | - trigger_instrum = models.CharField(max_length=45, blank=True, null=True) | |
41 | - trigger_num = models.CharField(max_length=45, blank=True, null=True) | |
42 | - grb_error = models.CharField(max_length=45, blank=True, null=True) | |
43 | - def_not_grb = models.IntegerField(blank=True, null=True) | |
44 | - editor = models.CharField(max_length=45, blank=True, null=True) | |
45 | - flag = models.CharField(max_length=45, blank=True, null=True) | |
46 | - idgcn_notice = models.IntegerField(blank=True, null=True) | |
47 | - | |
48 | - class Meta: | |
49 | - managed = False | |
50 | - db_table = 'alert' | |
51 | - | |
52 | - | |
53 | -class Country(models.Model): | |
54 | - name = models.CharField(max_length=45, blank=True, null=True) | |
55 | - desc = models.TextField(blank=True, null=True) | |
56 | - quota = models.FloatField(blank=True, null=True) | |
57 | - | |
58 | - class Meta: | |
59 | - managed = False | |
60 | - db_table = 'country' | |
61 | - | |
62 | - | |
63 | -class Detector(models.Model): | |
64 | - device = models.ForeignKey('Device', models.DO_NOTHING) | |
65 | - telescope = models.ForeignKey('Telescope', models.DO_NOTHING) | |
66 | - status = models.CharField(max_length=7, blank=True, null=True) | |
67 | - nb_photo_x = models.IntegerField(blank=True, null=True) | |
68 | - nb_photo_y = models.IntegerField(blank=True, null=True) | |
69 | - photo_size_x = models.IntegerField(blank=True, null=True) | |
70 | - photo_size_y = models.IntegerField(blank=True, null=True) | |
71 | - has_shutter = models.IntegerField(blank=True, null=True) | |
72 | - equivalent_foc_len = models.CharField(max_length=45, blank=True, null=True) | |
73 | - acq_start = models.DateTimeField(blank=True, null=True) | |
74 | - acq_stop = models.DateTimeField(blank=True, null=True) | |
75 | - check_temp = models.FloatField(blank=True, null=True) | |
76 | - gain = models.FloatField(blank=True, null=True) | |
77 | - readout_noise = models.FloatField(blank=True, null=True) | |
78 | - readout_time = models.FloatField(blank=True, null=True) | |
79 | - idcam_readout_mode = models.IntegerField(blank=True, null=True) | |
80 | - | |
81 | - class Meta: | |
82 | - managed = False | |
83 | - db_table = 'detector' | |
84 | - | |
85 | - | |
86 | -class Device(models.Model): | |
87 | - name = models.CharField(max_length=45, blank=True, null=True) | |
88 | - desc = models.TextField(blank=True, null=True) | |
89 | - created = models.DateTimeField(blank=True, null=True) | |
90 | - updated = models.DateTimeField(blank=True, null=True) | |
91 | - is_online = models.IntegerField(blank=True, null=True) | |
92 | - status = models.CharField(max_length=11, blank=True, null=True) | |
93 | - maintenance_date = models.DateTimeField(blank=True, null=True) | |
94 | - | |
95 | - class Meta: | |
96 | - managed = False | |
97 | - db_table = 'device' | |
98 | - | |
99 | - | |
100 | -class Filter(models.Model): | |
101 | - device = models.ForeignKey(Device, models.DO_NOTHING) | |
102 | - detector = models.ForeignKey(Detector, models.DO_NOTHING) | |
103 | - category = models.CharField(max_length=1, blank=True, null=True) | |
104 | - transmission_curve_doc = models.CharField( | |
105 | - max_length=45, blank=True, null=True) | |
106 | - | |
107 | - class Meta: | |
108 | - managed = False | |
109 | - db_table = 'filter' | |
110 | - | |
111 | - | |
112 | -class Image(models.Model): | |
113 | - plan = models.ForeignKey('Plan', models.DO_NOTHING) | |
114 | - nrtanalysis = models.ForeignKey( | |
115 | - 'Nrtanalysis', models.DO_NOTHING, blank=True, null=True) | |
116 | - name = models.CharField(max_length=45, blank=True, null=True) | |
117 | - desc = models.TextField(blank=True, null=True) | |
118 | - created = models.DateTimeField(blank=True, null=True) | |
119 | - updated = models.DateTimeField(blank=True, null=True) | |
120 | - date_from_gps = models.CharField(max_length=45, blank=True, null=True) | |
121 | - level = models.IntegerField(blank=True, null=True) | |
122 | - type = models.CharField(max_length=5, blank=True, null=True) | |
123 | - quality = models.CharField(max_length=45, blank=True, null=True) | |
124 | - flaggps = models.CharField(max_length=45, blank=True, null=True) | |
125 | - exposure = models.CharField(max_length=45, blank=True, null=True) | |
126 | - tempext = models.CharField(max_length=45, blank=True, null=True) | |
127 | - pressure = models.CharField(max_length=45, blank=True, null=True) | |
128 | - humidext = models.CharField(max_length=45, blank=True, null=True) | |
129 | - wind = models.CharField(max_length=45, blank=True, null=True) | |
130 | - wind_dir = models.CharField(max_length=45, blank=True, null=True) | |
131 | - dwnimg = models.CharField(max_length=45, blank=True, null=True) | |
132 | - dwncata = models.CharField(max_length=45, blank=True, null=True) | |
133 | - dwn = models.CharField(max_length=45, blank=True, null=True) | |
134 | - level0_fits_name = models.CharField(max_length=45, blank=True, null=True) | |
135 | - level1a_fits_name = models.CharField(max_length=45, blank=True, null=True) | |
136 | - level1b_fits_name = models.CharField(max_length=45, blank=True, null=True) | |
137 | - | |
138 | - class Meta: | |
139 | - managed = False | |
140 | - db_table = 'image' | |
141 | - | |
142 | - | |
143 | -class Nrtanalysis(models.Model): | |
144 | - name = models.CharField(max_length=45, blank=True, null=True) | |
145 | - desc = models.TextField(blank=True, null=True) | |
146 | - created = models.DateTimeField(blank=True, null=True) | |
147 | - updated = models.DateTimeField(blank=True, null=True) | |
148 | - analysis = models.TextField(blank=True, null=True) | |
149 | - | |
150 | - class Meta: | |
151 | - managed = False | |
152 | - db_table = 'nrtanalysis' | |
153 | - | |
154 | - | |
155 | -class Plan(models.Model): | |
156 | - album = models.ForeignKey(Album, models.DO_NOTHING) | |
157 | - filter = models.ForeignKey(Filter, models.DO_NOTHING) | |
158 | - name = models.CharField(max_length=45, blank=True, null=True) | |
159 | - desc = models.CharField(max_length=45, blank=True, null=True) | |
160 | - created = models.DateTimeField(blank=True, null=True) | |
161 | - updated = models.DateTimeField(blank=True, null=True) | |
162 | - duration = models.FloatField(blank=True, null=True) | |
163 | - position = models.CharField(max_length=45, blank=True, null=True) | |
164 | - exposure_time = models.FloatField(blank=True, null=True) | |
165 | - nb_images = models.IntegerField(blank=True, null=True) | |
166 | - dithering = models.IntegerField(blank=True, null=True) | |
167 | - | |
168 | - class Meta: | |
169 | - managed = False | |
170 | - db_table = 'plan' | |
171 | - | |
172 | - | |
173 | -class Request(models.Model): | |
174 | - user = models.ForeignKey('User', models.DO_NOTHING) | |
175 | - scientificprogram = models.ForeignKey( | |
176 | - 'Scientificprogram', models.DO_NOTHING) | |
177 | - name = models.CharField(max_length=45, blank=True, null=True) | |
178 | - desc = models.TextField(blank=True, null=True) | |
179 | - created = models.DateTimeField(blank=True, null=True) | |
180 | - updated = models.DateTimeField(blank=True, null=True) | |
181 | - is_alert = models.IntegerField(blank=True, null=True) | |
182 | - type = models.CharField(max_length=8, blank=True, null=True) | |
183 | - status = models.CharField(max_length=10, blank=True, null=True) | |
184 | - target_or_theme = models.CharField(max_length=45, blank=True, null=True) | |
185 | - priority = models.IntegerField(blank=True, null=True) | |
186 | - autodeposit = models.IntegerField(blank=True, null=True) | |
187 | - checkpoint = models.CharField(max_length=45, blank=True, null=True) | |
188 | - flag = models.CharField(max_length=45, blank=True, null=True) | |
189 | - | |
190 | - class Meta: | |
191 | - managed = False | |
192 | - db_table = 'request' | |
193 | - | |
194 | - | |
195 | -class Schedule(models.Model): | |
196 | - created = models.DateTimeField(blank=True, null=True) | |
197 | - day_start = models.DateTimeField(blank=True, null=True) | |
198 | - day_stop = models.DateTimeField(blank=True, null=True) | |
199 | - flag = models.CharField(max_length=45, blank=True, null=True) | |
200 | - | |
201 | - class Meta: | |
202 | - managed = False | |
203 | - db_table = 'schedule' | |
204 | - | |
205 | - | |
206 | -class ScheduleHasSequences(models.Model): | |
207 | - schedulehistory = models.ForeignKey('Schedulehistory', models.DO_NOTHING) | |
208 | - sequence = models.ForeignKey('Sequence', models.DO_NOTHING) | |
209 | - | |
210 | - class Meta: | |
211 | - managed = False | |
212 | - db_table = 'schedule_has_sequences' | |
213 | - unique_together = (('schedulehistory', 'sequence'),) | |
214 | - | |
215 | - | |
216 | -class Schedulehistory(models.Model): | |
217 | - created = models.DateTimeField(blank=True, null=True) | |
218 | - day_start = models.DateTimeField(blank=True, null=True) | |
219 | - day_stop = models.DateTimeField(blank=True, null=True) | |
220 | - flag = models.CharField(max_length=45, blank=True, null=True) | |
221 | - | |
222 | - class Meta: | |
223 | - managed = False | |
224 | - db_table = 'schedulehistory' | |
225 | - | |
226 | - | |
227 | -class Scientificprogram(models.Model): | |
228 | - name = models.CharField(max_length=45, blank=True, null=True) | |
229 | - desc = models.TextField(blank=True, null=True) | |
230 | - quota = models.FloatField(blank=True, null=True) | |
231 | - priority = models.IntegerField(blank=True, null=True) | |
232 | - | |
233 | - class Meta: | |
234 | - managed = False | |
235 | - db_table = 'scientificprogram' | |
236 | - | |
237 | - | |
238 | -class Sequence(models.Model): | |
239 | - request = models.ForeignKey(Request, models.DO_NOTHING) | |
240 | - sequencetype = models.ForeignKey('Sequencetype', models.DO_NOTHING) | |
241 | - schedule = models.ForeignKey(Schedule, models.DO_NOTHING) | |
242 | - name = models.CharField(max_length=45, blank=True, null=True) | |
243 | - desc = models.TextField(blank=True, null=True) | |
244 | - created = models.DateTimeField(blank=True, null=True) | |
245 | - updated = models.DateTimeField(blank=True, null=True) | |
246 | - is_alert = models.IntegerField(blank=True, null=True) | |
247 | - status = models.CharField(max_length=11, blank=True, null=True) | |
248 | - duration = models.FloatField(blank=True, null=True) | |
249 | - pointing = models.CharField(max_length=45, blank=True, null=True) | |
250 | - with_drift = models.IntegerField(blank=True, null=True) | |
251 | - priority = models.IntegerField(blank=True, null=True) | |
252 | - analysis_method = models.CharField(max_length=45, blank=True, null=True) | |
253 | - exec_start = models.DateTimeField() | |
254 | - exec_stop = models.DateTimeField(blank=True, null=True) | |
255 | - moon_min = models.IntegerField(blank=True, null=True) | |
256 | - alt_min = models.IntegerField(blank=True, null=True) | |
257 | - type = models.CharField(max_length=6, blank=True, null=True) | |
258 | - img_current = models.CharField(max_length=45, blank=True, null=True) | |
259 | - img_total = models.CharField(max_length=45, blank=True, null=True) | |
260 | - not_obs = models.IntegerField(blank=True, null=True) | |
261 | - obsolete = models.IntegerField(blank=True, null=True) | |
262 | - processing = models.IntegerField(blank=True, null=True) | |
263 | - flag = models.CharField(max_length=45, blank=True, null=True) | |
264 | - | |
265 | - class Meta: | |
266 | - managed = False | |
267 | - db_table = 'sequence' | |
268 | - | |
269 | - | |
270 | -class Sequencetype(models.Model): | |
271 | - name = models.CharField(max_length=45, blank=True, null=True) | |
272 | - desc = models.TextField(blank=True, null=True) | |
273 | - priority = models.IntegerField(blank=True, null=True) | |
274 | - | |
275 | - class Meta: | |
276 | - managed = False | |
277 | - db_table = 'sequencetype' | |
278 | - | |
279 | - | |
280 | -class Sitewatch(models.Model): | |
281 | - updated = models.DateTimeField(blank=True, null=True) | |
282 | - lights = models.CharField(max_length=45, blank=True, null=True) | |
283 | - dome = models.CharField(max_length=45, blank=True, null=True) | |
284 | - doors = models.CharField(max_length=45, blank=True, null=True) | |
285 | - temperature = models.FloatField(blank=True, null=True) | |
286 | - | |
287 | - class Meta: | |
288 | - managed = False | |
289 | - db_table = 'sitewatch' | |
290 | - | |
291 | - | |
292 | -class Sitewatchhistory(models.Model): | |
293 | - id = models.IntegerField(primary_key=True) | |
294 | - | |
295 | - class Meta: | |
296 | - managed = False | |
297 | - db_table = 'sitewatchhistory' | |
298 | - | |
299 | - | |
300 | -class Strategyobs(models.Model): | |
301 | - name = models.CharField(max_length=45, blank=True, null=True) | |
302 | - desc = models.TextField(blank=True, null=True) | |
303 | - json_file = models.CharField(max_length=45, blank=True, null=True) | |
304 | - | |
305 | - class Meta: | |
306 | - managed = False | |
307 | - db_table = 'strategyobs' | |
308 | - | |
309 | - | |
310 | -class Telescope(models.Model): | |
311 | - device = models.ForeignKey(Device, models.DO_NOTHING) | |
312 | - mount_type = models.CharField(max_length=9, blank=True, null=True) | |
313 | - diameter = models.FloatField(blank=True, null=True) | |
314 | - status = models.CharField(max_length=45, blank=True, null=True) | |
315 | - latitude = models.FloatField(blank=True, null=True) | |
316 | - longitude = models.FloatField(blank=True, null=True) | |
317 | - sens = models.CharField(max_length=1, blank=True, null=True) | |
318 | - altitude = models.FloatField(blank=True, null=True) | |
319 | - readout_time = models.IntegerField(blank=True, null=True) | |
320 | - slew_time = models.IntegerField(blank=True, null=True) | |
321 | - slew_dead = models.IntegerField(blank=True, null=True) | |
322 | - slew_rate_max = models.FloatField(blank=True, null=True) | |
323 | - horizon_type = models.CharField(max_length=45, blank=True, null=True) | |
324 | - horizon_def = models.FloatField(blank=True, null=True) | |
325 | - lim_dec_max = models.FloatField(blank=True, null=True) | |
326 | - lim_dec_min = models.FloatField(blank=True, null=True) | |
327 | - lim_ha_rise = models.FloatField(blank=True, null=True) | |
328 | - lim_ha_set = models.FloatField(blank=True, null=True) | |
329 | - address = models.CharField(max_length=45, blank=True, null=True) | |
330 | - night_elev_sun = models.FloatField(blank=True, null=True) | |
331 | - mpc_code = models.CharField(max_length=45, blank=True, null=True) | |
332 | - | |
333 | - class Meta: | |
334 | - managed = False | |
335 | - db_table = 'telescope' | |
336 | - | |
337 | - | |
338 | -class User(models.Model): | |
339 | - country = models.ForeignKey(Country, models.DO_NOTHING) | |
340 | - userlevel = models.ForeignKey('Userlevel', models.DO_NOTHING) | |
341 | - name = models.CharField(max_length=45, blank=True, null=True) | |
342 | - desc = models.TextField(blank=True, null=True) | |
343 | - created = models.DateTimeField(blank=True, null=True) | |
344 | - updated = models.DateTimeField(blank=True, null=True) | |
345 | - firstname = models.CharField(max_length=45, blank=True, null=True) | |
346 | - email = models.CharField(max_length=45, blank=True, null=True) | |
347 | - url = models.CharField(max_length=45, blank=True, null=True) | |
348 | - tel1 = models.CharField(max_length=45, blank=True, null=True) | |
349 | - tel2 = models.CharField(max_length=45, blank=True, null=True) | |
350 | - address = models.CharField(max_length=45, blank=True, null=True) | |
351 | - login = models.CharField(max_length=15, blank=True, null=True) | |
352 | - # Field renamed because it was a Python reserved word. | |
353 | - pass_field = models.CharField( | |
354 | - db_column='pass', max_length=45, blank=True, null=True) | |
355 | - last_connect = models.DateTimeField(blank=True, null=True) | |
356 | - cur_connect = models.DateTimeField(blank=True, null=True) | |
357 | - putvalid_beg = models.DateTimeField(blank=True, null=True) | |
358 | - putvalid_end = models.DateTimeField(blank=True, null=True) | |
359 | - acqvalid_beg = models.CharField(max_length=45, blank=True, null=True) | |
360 | - acqvalid_end = models.CharField(max_length=45, blank=True, null=True) | |
361 | - quota = models.FloatField(blank=True, null=True) | |
362 | - quota_rea = models.FloatField(blank=True, null=True) | |
363 | - u_priority = models.IntegerField(blank=True, null=True) | |
364 | - p_priority = models.IntegerField(blank=True, null=True) | |
365 | - dir_level = models.IntegerField(blank=True, null=True) | |
366 | - can_del_void_req = models.IntegerField(blank=True, null=True) | |
367 | - | |
368 | - class Meta: | |
369 | - managed = False | |
370 | - db_table = 'user' | |
371 | - | |
372 | - | |
373 | -class UserHasScientificprograms(models.Model): | |
374 | - user = models.ForeignKey(User, models.DO_NOTHING) | |
375 | - scientificprogram = models.ForeignKey(Scientificprogram, models.DO_NOTHING) | |
376 | - | |
377 | - class Meta: | |
378 | - managed = False | |
379 | - db_table = 'user_has_scientificprograms' | |
380 | - unique_together = (('user', 'scientificprogram'),) | |
381 | - | |
382 | - | |
383 | -class Userlevel(models.Model): | |
384 | - name = models.CharField(max_length=45, blank=True, null=True) | |
385 | - desc = models.TextField(blank=True, null=True) | |
386 | - priority = models.IntegerField(blank=True, null=True) | |
387 | - quota = models.FloatField(blank=True, null=True) | |
388 | - | |
389 | - class Meta: | |
390 | - managed = False | |
391 | - db_table = 'userlevel' | |
392 | - | |
393 | - | |
394 | -class Weatherwatch(models.Model): | |
395 | - updated = models.DateTimeField(blank=True, null=True) | |
396 | - humid_int = models.FloatField(blank=True, null=True) | |
397 | - humid_ext = models.FloatField(blank=True, null=True) | |
398 | - wind = models.FloatField(blank=True, null=True) | |
399 | - wind_dir = models.CharField(max_length=1, blank=True, null=True) | |
400 | - temp_int = models.FloatField(blank=True, null=True) | |
401 | - temp_ext = models.FloatField(blank=True, null=True) | |
402 | - pressure = models.FloatField(blank=True, null=True) | |
403 | - rain = models.FloatField(blank=True, null=True) | |
404 | - dwn = models.CharField(max_length=45, blank=True, null=True) | |
405 | - | |
406 | - class Meta: | |
407 | - managed = False | |
408 | - db_table = 'weatherwatch' | |
409 | - | |
410 | - | |
411 | -class Weatherwatchhistory(models.Model): | |
412 | - datetime = models.DateTimeField(blank=True, null=True) | |
413 | - humid_int = models.CharField(max_length=45, blank=True, null=True) | |
414 | - humid_ext = models.CharField(max_length=45, blank=True, null=True) | |
415 | - wind = models.CharField(max_length=45, blank=True, null=True) | |
416 | - wind_dir = models.CharField(max_length=45, blank=True, null=True) | |
417 | - temp_int = models.CharField(max_length=45, blank=True, null=True) | |
418 | - temp_ext = models.CharField(max_length=45, blank=True, null=True) | |
419 | - pressure = models.CharField(max_length=45, blank=True, null=True) | |
420 | - rain = models.CharField(max_length=45, blank=True, null=True) | |
421 | - dwn = models.CharField(max_length=45, blank=True, null=True) | |
422 | - | |
423 | - class Meta: | |
424 | - managed = False | |
425 | - db_table = 'weatherwatchhistory' |
src/core/pyros_django/majordome/doc/AgentMajordome_object_diag.pu
... | ... | @@ -89,18 +89,18 @@ ClientChannel <|-- ClientChannelUSB |
89 | 89 | |
90 | 90 | /' ======= GEMINI controllers (& sim) ======= '/ |
91 | 91 | |
92 | -class AD_TelescopeGemini #lightblue | |
93 | -AD_TelescopeGemini -u--|> AgentDevice | |
92 | +class AgentDeviceTelescopeGemini #lightblue | |
93 | +AgentDeviceTelescopeGemini -u--|> AgentDevice | |
94 | 94 | |
95 | 95 | /' Components (only 1) '/ |
96 | -AD_Telescope1 -d-> AD_TelescopeGemini :alias of | |
96 | +AD_Telescope1 -d-> AgentDeviceTelescopeGemini :alias of | |
97 | 97 | |
98 | 98 | class DC_Gemini <<Singleton>> #lightblue |
99 | 99 | class DC_MountGemini #lightblue |
100 | 100 | class DS_Gemini #lightblue |
101 | 101 | /'DC_Mount o-left- DS_Mount'/ |
102 | 102 | |
103 | -AD_TelescopeGemini --> DC_Gemini :use | |
103 | +AgentDeviceTelescopeGemini --> DC_Gemini :use | |
104 | 104 | /'DC_Gemini o-left- DS_Gemini'/ |
105 | 105 | |
106 | 106 | /' Controllers '/ |
... | ... | @@ -120,13 +120,13 @@ DS_Mount --|> DeviceSimulator |
120 | 120 | |
121 | 121 | /' ======= SBIG controllers (& sim) ======= '/ |
122 | 122 | |
123 | -class AD_SBIG <<Singleton>> #lightgreen | |
124 | -AD_SBIG -u--|> AgentDevice | |
123 | +class AgentDeviceSBIG <<Singleton>> #lightgreen | |
124 | +AgentDeviceSBIG -u--|> AgentDevice | |
125 | 125 | |
126 | 126 | /' Components (3) '/ |
127 | -AD_FilterSelector1 --> AD_SBIG :alias of | |
128 | -AD_Shutter1 --> AD_SBIG :alias of | |
129 | -AD_Sensor1 --> AD_SBIG :alias of | |
127 | +AD_FilterSelector1 --> AgentDeviceSBIG :alias of | |
128 | +AD_Shutter1 --> AgentDeviceSBIG :alias of | |
129 | +AD_Sensor1 --> AgentDeviceSBIG :alias of | |
130 | 130 | |
131 | 131 | class DC_SBIG <<Singleton>> #lightgreen |
132 | 132 | class DC_DetectorSensorSBIG #lightgreen |
... | ... | @@ -134,7 +134,7 @@ class DC_DetectorShutterSBIG #lightgreen |
134 | 134 | class DC_FilterSelectorSBIG #lightgreen |
135 | 135 | class DS_SBIG #lightgreen |
136 | 136 | |
137 | -AD_SBIG -d-> DC_SBIG :use | |
137 | +AgentDeviceSBIG -d-> DC_SBIG :use | |
138 | 138 | /'DC_SBIG o- DS_SBIG'/ |
139 | 139 | |
140 | 140 | /' Controllers '/ | ... | ... |
src/device_controller/abstract_component/detector_sensor.py
... | ... | @@ -22,7 +22,7 @@ import src.core.celme as celme |
22 | 22 | #from device_controller.abstract_component.base import * |
23 | 23 | sys.path.append("../..") |
24 | 24 | #from device_controller.abstract_component.base import * |
25 | -from device_controller.abstract_component.base import DeviceControllerAbstract | |
25 | +from device_controller.abstract_component.device_controller import DeviceControllerAbstract | |
26 | 26 | |
27 | 27 | |
28 | 28 | # Default timeouts | ... | ... |
src/device_controller/abstract_component/detector_shutter.py
... | ... | @@ -22,7 +22,7 @@ import src.core.celme as celme |
22 | 22 | #from device_controller.abstract_component.base import * |
23 | 23 | sys.path.append("../..") |
24 | 24 | #from device_controller.abstract_component.base import * |
25 | -from device_controller.abstract_component.base import DeviceControllerAbstract | |
25 | +from device_controller.abstract_component.device_controller import DeviceControllerAbstract | |
26 | 26 | |
27 | 27 | |
28 | 28 | ... | ... |
src/device_controller/abstract_component/base.py renamed to src/device_controller/abstract_component/device_controller.py
src/device_controller/abstract_component/filter_selector.py
... | ... | @@ -22,7 +22,7 @@ import src.core.celme as celme |
22 | 22 | #from device_controller.abstract_component.base import * |
23 | 23 | sys.path.append("../..") |
24 | 24 | #from device_controller.abstract_component.base import * |
25 | -from device_controller.abstract_component.base import DeviceControllerAbstract | |
25 | +from device_controller.abstract_component.device_controller import DeviceControllerAbstract | |
26 | 26 | |
27 | 27 | |
28 | 28 | # Default timeouts | ... | ... |
src/device_controller/abstract_component/telescope.py
... | ... | @@ -28,7 +28,7 @@ import src.core.celme as celme |
28 | 28 | #sys.path.append('../..') |
29 | 29 | #from src.client.socket_client_abstract import UnknownCommandException, SocketClientAbstract |
30 | 30 | ##from src_socket.client.socket_client_abstract import * |
31 | -from device_controller.abstract_component.base import * | |
31 | +from device_controller.abstract_component.device_controller import * | |
32 | 32 | |
33 | 33 | |
34 | 34 | ... | ... |
src/device_controller/concrete_component/gemini/client_telescope_gemini_controller_run.py
... | ... | @@ -17,7 +17,7 @@ ou (3) |
17 | 17 | |
18 | 18 | |
19 | 19 | sys.path.append("../../..") |
20 | -from device_controller.abstract_component.base import DeviceCommand | |
20 | +from device_controller.abstract_component.device_controller import DeviceCommand | |
21 | 21 | #from gemini_telescope_controller import DeviceControllerTelescopeGemini |
22 | 22 | from device_controller.concrete_component.gemini.gemini_telescope_controller import DeviceControllerTelescopeGemini |
23 | 23 | ... | ... |
src/device_controller/concrete_component/gemini/gemini_telescope_controller.py
... | ... | @@ -15,7 +15,7 @@ import time |
15 | 15 | |
16 | 16 | # Local application imports |
17 | 17 | sys.path.append('../../..') |
18 | -from device_controller.abstract_component.base import UnknownCommandException | |
18 | +from device_controller.abstract_component.device_controller import UnknownCommandException | |
19 | 19 | #from src.client.socket_client_telescope_abstract import Position, UnknownCommandException, TimeoutException, SocketClientTelescopeAbstract |
20 | 20 | ##from src_socket.client.socket_client_telescope_abstract import * |
21 | 21 | #from device_controller.abstract_component.telescope_controller_abstract import * | ... | ... |
src/device_controller/concrete_component/sbig/sbig_controller.py
... | ... | @@ -15,7 +15,7 @@ import time |
15 | 15 | |
16 | 16 | # Local application imports |
17 | 17 | sys.path.append('../../..') |
18 | -from device_controller.abstract_component.base import DeviceControllerAbstract, UnknownCommandException | |
18 | +from device_controller.abstract_component.device_controller import DeviceControllerAbstract, UnknownCommandException | |
19 | 19 | ''' |
20 | 20 | from device_controller.abstract_component.detector_sensor import DeviceControllerDetectorSensor |
21 | 21 | from device_controller.abstract_component.filter_selector import DeviceControllerFilterSelector | ... | ... |
src/device_controller/concrete_component/sbig/sbig_detector_sensor_controller.py
... | ... | @@ -17,7 +17,7 @@ import time |
17 | 17 | sys.path.append('../../..') |
18 | 18 | from device_controller.abstract_component.detector_sensor import DeviceControllerDetectorSensor |
19 | 19 | # TODO: AVIRER |
20 | -from device_controller.abstract_component.base import UnknownCommandException | |
20 | +from device_controller.abstract_component.device_controller import UnknownCommandException | |
21 | 21 | |
22 | 22 | # Default timeouts |
23 | 23 | TIMEOUT_SEND = 10 | ... | ... |
src/device_controller/concrete_component/sbig/sbig_detector_shutter_controller.py
... | ... | @@ -17,7 +17,7 @@ import time |
17 | 17 | sys.path.append('../../..') |
18 | 18 | from device_controller.abstract_component.detector_shutter import DeviceControllerDetectorShutter |
19 | 19 | # TODO: AVIRER |
20 | -from device_controller.abstract_component.base import UnknownCommandException | |
20 | +from device_controller.abstract_component.device_controller import UnknownCommandException | |
21 | 21 | |
22 | 22 | # Default timeouts |
23 | 23 | TIMEOUT_SEND = 10 | ... | ... |
src/device_controller/concrete_component/sbig/sbig_filter_selector_controller.py
... | ... | @@ -17,7 +17,7 @@ import time |
17 | 17 | sys.path.append('../../..') |
18 | 18 | from device_controller.abstract_component.filter_selector import DeviceControllerFilterSelector |
19 | 19 | # TODO: AVIRER |
20 | -from device_controller.abstract_component.base import UnknownCommandException | |
20 | +from device_controller.abstract_component.device_controller import UnknownCommandException | |
21 | 21 | |
22 | 22 | # Default timeouts |
23 | 23 | TIMEOUT_SEND = 10 | ... | ... |