001package jmri.jmrix.pi.simulator;
002
003import com.pi4j.io.gpio.*;
004import com.pi4j.io.gpio.event.GpioPinListener;
005import com.pi4j.io.gpio.trigger.GpioTrigger;
006
007import java.util.Collection;
008
009/**
010 * Simulates a Raspberry Pi.
011 *
012 * @author Daniel Bergqvist Copyright (C) 2022
013 */
014public class GpioControllerSimulator implements GpioController {
015
016    @Override
017    public void export(PinMode pm, PinState ps, GpioPin... gps) {
018        throw new UnsupportedOperationException("Not supported");
019    }
020
021    @Override
022    public void export(PinMode pm, GpioPin... gps) {
023        throw new UnsupportedOperationException("Not supported");
024    }
025
026    @Override
027    public boolean isExported(GpioPin... gps) {
028        throw new UnsupportedOperationException("Not supported");
029    }
030
031    @Override
032    public void unexport(Pin... pins) {
033        throw new UnsupportedOperationException("Not supported");
034    }
035
036    @Override
037    public void unexport(GpioPin... gps) {
038        throw new UnsupportedOperationException("Not supported");
039    }
040
041    @Override
042    public void unexportAll() {
043        throw new UnsupportedOperationException("Not supported");
044    }
045
046    @Override
047    public void setMode(PinMode pm, GpioPin... gps) {
048        throw new UnsupportedOperationException("Not supported");
049    }
050
051    @Override
052    public PinMode getMode(GpioPin gp) {
053        throw new UnsupportedOperationException("Not supported");
054    }
055
056    @Override
057    public boolean isMode(PinMode pm, GpioPin... gps) {
058        throw new UnsupportedOperationException("Not supported");
059    }
060
061    @Override
062    public void setPullResistance(PinPullResistance ppr, GpioPin... gps) {
063        throw new UnsupportedOperationException("Not supported");
064    }
065
066    @Override
067    public PinPullResistance getPullResistance(GpioPin gp) {
068        throw new UnsupportedOperationException("Not supported");
069    }
070
071    @Override
072    public boolean isPullResistance(PinPullResistance ppr, GpioPin... gps) {
073        throw new UnsupportedOperationException("Not supported");
074    }
075
076    @Override
077    public void high(GpioPinDigitalOutput... gpdos) {
078        throw new UnsupportedOperationException("Not supported");
079    }
080
081    @Override
082    public boolean isHigh(GpioPinDigital... gpds) {
083        throw new UnsupportedOperationException("Not supported");
084    }
085
086    @Override
087    public void low(GpioPinDigitalOutput... gpdos) {
088        throw new UnsupportedOperationException("Not supported");
089    }
090
091    @Override
092    public boolean isLow(GpioPinDigital... gpds) {
093        throw new UnsupportedOperationException("Not supported");
094    }
095
096    @Override
097    public void setState(PinState ps, GpioPinDigitalOutput... gpdos) {
098        throw new UnsupportedOperationException("Not supported");
099    }
100
101    @Override
102    public void setState(boolean bln, GpioPinDigitalOutput... gpdos) {
103        throw new UnsupportedOperationException("Not supported");
104    }
105
106    @Override
107    public boolean isState(PinState ps, GpioPinDigital... gpds) {
108        throw new UnsupportedOperationException("Not supported");
109    }
110
111    @Override
112    public PinState getState(GpioPinDigital gpd) {
113        throw new UnsupportedOperationException("Not supported");
114    }
115
116    @Override
117    public void toggle(GpioPinDigitalOutput... gpdos) {
118        throw new UnsupportedOperationException("Not supported");
119    }
120
121    @Override
122    public void pulse(long l, GpioPinDigitalOutput... gpdos) {
123        throw new UnsupportedOperationException("Not supported");
124    }
125
126    @Override
127    public void setValue(double d, GpioPinAnalogOutput... gpaos) {
128        throw new UnsupportedOperationException("Not supported");
129    }
130
131    @Override
132    public double getValue(GpioPinAnalog gpa) {
133        throw new UnsupportedOperationException("Not supported");
134    }
135
136    @Override
137    public void addListener(GpioPinListener gl, GpioPinInput... gpis) {
138        throw new UnsupportedOperationException("Not supported");
139    }
140
141    @Override
142    public void addListener(GpioPinListener[] gls, GpioPinInput... gpis) {
143        throw new UnsupportedOperationException("Not supported");
144    }
145
146    @Override
147    public void removeListener(GpioPinListener gl, GpioPinInput... gpis) {
148        throw new UnsupportedOperationException("Not supported");
149    }
150
151    @Override
152    public void removeListener(GpioPinListener[] gls, GpioPinInput... gpis) {
153        throw new UnsupportedOperationException("Not supported");
154    }
155
156    @Override
157    public void removeAllListeners() {
158        throw new UnsupportedOperationException("Not supported");
159    }
160
161    @Override
162    public void addTrigger(GpioTrigger gt, GpioPinInput... gpis) {
163        throw new UnsupportedOperationException("Not supported");
164    }
165
166    @Override
167    public void addTrigger(GpioTrigger[] gts, GpioPinInput... gpis) {
168        throw new UnsupportedOperationException("Not supported");
169    }
170
171    @Override
172    public void removeTrigger(GpioTrigger gt, GpioPinInput... gpis) {
173        throw new UnsupportedOperationException("Not supported");
174    }
175
176    @Override
177    public void removeTrigger(GpioTrigger[] gts, GpioPinInput... gpis) {
178        throw new UnsupportedOperationException("Not supported");
179    }
180
181    @Override
182    public void removeAllTriggers() {
183        throw new UnsupportedOperationException("Not supported");
184    }
185
186    @Override
187    public GpioPinDigitalMultipurpose provisionDigitalMultipurposePin(GpioProvider gp, Pin pin, String string, PinMode pm, PinPullResistance ppr) {
188        throw new UnsupportedOperationException("Not supported");
189    }
190
191    @Override
192    public GpioPinDigitalMultipurpose provisionDigitalMultipurposePin(GpioProvider gp, Pin pin, PinMode pm, PinPullResistance ppr) {
193        throw new UnsupportedOperationException("Not supported");
194    }
195
196    @Override
197    public GpioPinDigitalMultipurpose provisionDigitalMultipurposePin(GpioProvider gp, Pin pin, String string, PinMode pm) {
198        throw new UnsupportedOperationException("Not supported");
199    }
200
201    @Override
202    public GpioPinDigitalMultipurpose provisionDigitalMultipurposePin(GpioProvider gp, Pin pin, PinMode pm) {
203        throw new UnsupportedOperationException("Not supported");
204    }
205
206    @Override
207    public GpioPinDigitalMultipurpose provisionDigitalMultipurposePin(Pin pin, String string, PinMode pm, PinPullResistance ppr) {
208        throw new UnsupportedOperationException("Not supported");
209    }
210
211    @Override
212    public GpioPinDigitalMultipurpose provisionDigitalMultipurposePin(Pin pin, PinMode pm, PinPullResistance ppr) {
213        throw new UnsupportedOperationException("Not supported");
214    }
215
216    @Override
217    public GpioPinDigitalMultipurpose provisionDigitalMultipurposePin(Pin pin, String string, PinMode pm) {
218        throw new UnsupportedOperationException("Not supported");
219    }
220
221    @Override
222    public GpioPinDigitalMultipurpose provisionDigitalMultipurposePin(Pin pin, PinMode pm) {
223        throw new UnsupportedOperationException("Not supported");
224    }
225
226    @Override
227    public GpioPinDigitalInput provisionDigitalInputPin(GpioProvider gp, Pin pin, String string, PinPullResistance ppr) {
228        throw new UnsupportedOperationException("Not supported");
229    }
230
231    @Override
232    public GpioPinDigitalInput provisionDigitalInputPin(GpioProvider gp, Pin pin, PinPullResistance ppr) {
233        throw new UnsupportedOperationException("Not supported");
234    }
235
236    @Override
237    public GpioPinDigitalInput provisionDigitalInputPin(GpioProvider gp, Pin pin, String string) {
238        throw new UnsupportedOperationException("Not supported");
239    }
240
241    @Override
242    public GpioPinDigitalInput provisionDigitalInputPin(GpioProvider gp, Pin pin) {
243        throw new UnsupportedOperationException("Not supported");
244    }
245
246    @Override
247    public GpioPinDigitalInput provisionDigitalInputPin(Pin pin, String string, PinPullResistance ppr) {
248        throw new UnsupportedOperationException("Not supported");
249    }
250
251    @Override
252    public GpioPinDigitalInput provisionDigitalInputPin(Pin pin, PinPullResistance ppr) {
253        throw new UnsupportedOperationException("Not supported");
254    }
255
256    @Override
257    public GpioPinDigitalInput provisionDigitalInputPin(Pin pin, String string) {
258        throw new UnsupportedOperationException("Not supported");
259    }
260
261    @Override
262    public GpioPinDigitalInput provisionDigitalInputPin(Pin pin) {
263        throw new UnsupportedOperationException("Not supported");
264    }
265
266    @Override
267    public GpioPinDigitalOutput provisionDigitalOutputPin(GpioProvider gp, Pin pin, String string, PinState ps) {
268        throw new UnsupportedOperationException("Not supported");
269    }
270
271    @Override
272    public GpioPinDigitalOutput provisionDigitalOutputPin(GpioProvider gp, Pin pin, PinState ps) {
273        throw new UnsupportedOperationException("Not supported");
274    }
275
276    @Override
277    public GpioPinDigitalOutput provisionDigitalOutputPin(GpioProvider gp, Pin pin, String string) {
278        throw new UnsupportedOperationException("Not supported");
279    }
280
281    @Override
282    public GpioPinDigitalOutput provisionDigitalOutputPin(GpioProvider gp, Pin pin) {
283        throw new UnsupportedOperationException("Not supported");
284    }
285
286    @Override
287    public GpioPinDigitalOutput provisionDigitalOutputPin(Pin pin, String string, PinState ps) {
288        throw new UnsupportedOperationException("Not supported");
289    }
290
291    @Override
292    public GpioPinDigitalOutput provisionDigitalOutputPin(Pin pin, PinState ps) {
293        throw new UnsupportedOperationException("Not supported");
294    }
295
296    @Override
297    public GpioPinDigitalOutput provisionDigitalOutputPin(Pin pin, String string) {
298        throw new UnsupportedOperationException("Not supported");
299    }
300
301    @Override
302    public GpioPinDigitalOutput provisionDigitalOutputPin(Pin pin) {
303        throw new UnsupportedOperationException("Not supported");
304    }
305
306    @Override
307    public GpioPinAnalogInput provisionAnalogInputPin(GpioProvider gp, Pin pin, String string) {
308        throw new UnsupportedOperationException("Not supported");
309    }
310
311    @Override
312    public GpioPinAnalogInput provisionAnalogInputPin(GpioProvider gp, Pin pin) {
313        throw new UnsupportedOperationException("Not supported");
314    }
315
316    @Override
317    public GpioPinAnalogInput provisionAnalogInputPin(Pin pin, String string) {
318        throw new UnsupportedOperationException("Not supported");
319    }
320
321    @Override
322    public GpioPinAnalogInput provisionAnalogInputPin(Pin pin) {
323        throw new UnsupportedOperationException("Not supported");
324    }
325
326    @Override
327    public GpioPinAnalogOutput provisionAnalogOutputPin(GpioProvider gp, Pin pin, String string, double d) {
328        throw new UnsupportedOperationException("Not supported");
329    }
330
331    @Override
332    public GpioPinAnalogOutput provisionAnalogOutputPin(GpioProvider gp, Pin pin, double d) {
333        throw new UnsupportedOperationException("Not supported");
334    }
335
336    @Override
337    public GpioPinAnalogOutput provisionAnalogOutputPin(GpioProvider gp, Pin pin, String string) {
338        throw new UnsupportedOperationException("Not supported");
339    }
340
341    @Override
342    public GpioPinAnalogOutput provisionAnalogOutputPin(GpioProvider gp, Pin pin) {
343        throw new UnsupportedOperationException("Not supported");
344    }
345
346    @Override
347    public GpioPinAnalogOutput provisionAnalogOutputPin(Pin pin, String string, double d) {
348        throw new UnsupportedOperationException("Not supported");
349    }
350
351    @Override
352    public GpioPinAnalogOutput provisionAnalogOutputPin(Pin pin, double d) {
353        throw new UnsupportedOperationException("Not supported");
354    }
355
356    @Override
357    public GpioPinAnalogOutput provisionAnalogOutputPin(Pin pin, String string) {
358        throw new UnsupportedOperationException("Not supported");
359    }
360
361    @Override
362    public GpioPinAnalogOutput provisionAnalogOutputPin(Pin pin) {
363        throw new UnsupportedOperationException("Not supported");
364    }
365
366    @Override
367    public GpioPinPwmOutput provisionPwmOutputPin(GpioProvider gp, Pin pin, String string, int i) {
368        throw new UnsupportedOperationException("Not supported");
369    }
370
371    @Override
372    public GpioPinPwmOutput provisionPwmOutputPin(GpioProvider gp, Pin pin, int i) {
373        throw new UnsupportedOperationException("Not supported");
374    }
375
376    @Override
377    public GpioPinPwmOutput provisionPwmOutputPin(GpioProvider gp, Pin pin, String string) {
378        throw new UnsupportedOperationException("Not supported");
379    }
380
381    @Override
382    public GpioPinPwmOutput provisionPwmOutputPin(GpioProvider gp, Pin pin) {
383        throw new UnsupportedOperationException("Not supported");
384    }
385
386    @Override
387    public GpioPinPwmOutput provisionPwmOutputPin(Pin pin, String string, int i) {
388        throw new UnsupportedOperationException("Not supported");
389    }
390
391    @Override
392    public GpioPinPwmOutput provisionPwmOutputPin(Pin pin, int i) {
393        throw new UnsupportedOperationException("Not supported");
394    }
395
396    @Override
397    public GpioPinPwmOutput provisionPwmOutputPin(Pin pin, String string) {
398        throw new UnsupportedOperationException("Not supported");
399    }
400
401    @Override
402    public GpioPinPwmOutput provisionPwmOutputPin(Pin pin) {
403        throw new UnsupportedOperationException("Not supported");
404    }
405
406    @Override
407    public GpioPinPwmOutput provisionSoftPwmOutputPin(GpioProvider gp, Pin pin, String string, int i) {
408        throw new UnsupportedOperationException("Not supported");
409    }
410
411    @Override
412    public GpioPinPwmOutput provisionSoftPwmOutputPin(GpioProvider gp, Pin pin, int i) {
413        throw new UnsupportedOperationException("Not supported");
414    }
415
416    @Override
417    public GpioPinPwmOutput provisionSoftPwmOutputPin(GpioProvider gp, Pin pin, String string) {
418        throw new UnsupportedOperationException("Not supported");
419    }
420
421    @Override
422    public GpioPinPwmOutput provisionSoftPwmOutputPin(GpioProvider gp, Pin pin) {
423        throw new UnsupportedOperationException("Not supported");
424    }
425
426    @Override
427    public GpioPinPwmOutput provisionSoftPwmOutputPin(Pin pin, String string, int i) {
428        throw new UnsupportedOperationException("Not supported");
429    }
430
431    @Override
432    public GpioPinPwmOutput provisionSoftPwmOutputPin(Pin pin, int i) {
433        throw new UnsupportedOperationException("Not supported");
434    }
435
436    @Override
437    public GpioPinPwmOutput provisionSoftPwmOutputPin(Pin pin, String string) {
438        throw new UnsupportedOperationException("Not supported");
439    }
440
441    @Override
442    public GpioPinPwmOutput provisionSoftPwmOutputPin(Pin pin) {
443        throw new UnsupportedOperationException("Not supported");
444    }
445
446    @Override
447    public GpioPin provisionPin(GpioProvider gp, Pin pin, String string, PinMode pm, PinState ps) {
448        throw new UnsupportedOperationException("Not supported");
449    }
450
451    @Override
452    public GpioPin provisionPin(GpioProvider gp, Pin pin, String string, PinMode pm) {
453        throw new UnsupportedOperationException("Not supported");
454    }
455
456    @Override
457    public GpioPin provisionPin(GpioProvider gp, Pin pin, PinMode pm) {
458        throw new UnsupportedOperationException("Not supported");
459    }
460
461    @Override
462    public GpioPin provisionPin(Pin pin, String string, PinMode pm) {
463        throw new UnsupportedOperationException("Not supported");
464    }
465
466    @Override
467    public GpioPin provisionPin(Pin pin, PinMode pm) {
468        throw new UnsupportedOperationException("Not supported");
469    }
470
471    @Override
472    public void setShutdownOptions(GpioPinShutdown gps, GpioPin... gps1) {
473        throw new UnsupportedOperationException("Not supported");
474    }
475
476    @Override
477    public void setShutdownOptions(Boolean bln, GpioPin... gps) {
478        throw new UnsupportedOperationException("Not supported");
479    }
480
481    @Override
482    public void setShutdownOptions(Boolean bln, PinState ps, GpioPin... gps) {
483        throw new UnsupportedOperationException("Not supported");
484    }
485
486    @Override
487    public void setShutdownOptions(Boolean bln, PinState ps, PinPullResistance ppr, GpioPin... gps) {
488        throw new UnsupportedOperationException("Not supported");
489    }
490
491    @Override
492    public void setShutdownOptions(Boolean bln, PinState ps, PinPullResistance ppr, PinMode pm, GpioPin... gps) {
493        throw new UnsupportedOperationException("Not supported");
494    }
495
496    @Override
497    public Collection<GpioPin> getProvisionedPins() {
498        throw new UnsupportedOperationException("Not supported");
499    }
500
501    @Override
502    public GpioPin getProvisionedPin(Pin pin) {
503        throw new UnsupportedOperationException("Not supported");
504    }
505
506    @Override
507    public GpioPin getProvisionedPin(String string) {
508        throw new UnsupportedOperationException("Not supported");
509    }
510
511    @Override
512    public void unprovisionPin(GpioPin... gps) {
513        throw new UnsupportedOperationException("Not supported");
514    }
515
516    @Override
517    public boolean isShutdown() {
518        throw new UnsupportedOperationException("Not supported");
519    }
520
521    @Override
522    public void shutdown() {
523        throw new UnsupportedOperationException("Not supported");
524    }
525
526}