001package com.pi4j.system.impl;
002
003/*
004 * #%L
005 * **********************************************************************
006 * ORGANIZATION  :  Pi4J
007 * PROJECT       :  Pi4J :: Java Library (Core)
008 * FILENAME      :  SystemInfoProviderBase.java
009 *
010 * This file is part of the Pi4J project. More information about
011 * this project can be found here:  https://www.pi4j.com/
012 * **********************************************************************
013 * %%
014 * Copyright (C) 2012 - 2019 Pi4J
015 * %%
016 * This program is free software: you can redistribute it and/or modify
017 * it under the terms of the GNU Lesser General Public License as
018 * published by the Free Software Foundation, either version 3 of the
019 * License, or (at your option) any later version.
020 *
021 * This program is distributed in the hope that it will be useful,
022 * but WITHOUT ANY WARRANTY; without even the implied warranty of
023 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
024 * GNU General Lesser Public License for more details.
025 *
026 * You should have received a copy of the GNU General Lesser Public
027 * License along with this program.  If not, see
028 * <http://www.gnu.org/licenses/lgpl-3.0.html>.
029 * #L%
030 */
031
032import com.pi4j.system.SystemInfo;
033import com.pi4j.system.SystemInfoProvider;
034
035import java.io.IOException;
036import java.text.ParseException;
037
038/**
039 * Abstract base implementation of the SystemInfoProvider interface.
040 * This base impl is a NO-OP impl, simply throwing a 'UnsupportedOperationException'
041 * for each method.
042 */
043public abstract class SystemInfoProviderBase implements SystemInfoProvider {
044
045    @Override
046    public String getProcessor() throws IOException, InterruptedException, UnsupportedOperationException {
047        throw new UnsupportedOperationException();
048    }
049
050    @Override
051    public String getModelName() throws IOException, InterruptedException, UnsupportedOperationException {
052        throw new UnsupportedOperationException();
053    }
054
055    @Override
056    public String getBogoMIPS() throws IOException, InterruptedException, UnsupportedOperationException {
057        throw new UnsupportedOperationException();
058    }
059
060    @Override
061    public String[] getCpuFeatures() throws IOException, InterruptedException, UnsupportedOperationException {
062        throw new UnsupportedOperationException();
063    }
064
065    @Override
066    public String getCpuImplementer() throws IOException, InterruptedException, UnsupportedOperationException {
067        throw new UnsupportedOperationException();
068    }
069
070    @Override
071    public String getCpuArchitecture() throws IOException, InterruptedException, UnsupportedOperationException {
072        throw new UnsupportedOperationException();
073    }
074
075    @Override
076    public String getCpuVariant() throws IOException, InterruptedException, UnsupportedOperationException {
077        throw new UnsupportedOperationException();
078    }
079
080    @Override
081    public String getCpuPart() throws IOException, InterruptedException, UnsupportedOperationException {
082        throw new UnsupportedOperationException();
083    }
084
085    @Override
086    public String getCpuRevision() throws IOException, InterruptedException, UnsupportedOperationException {
087        throw new UnsupportedOperationException();
088    }
089
090    @Override
091    public String getHardware() throws IOException, InterruptedException, UnsupportedOperationException {
092        throw new UnsupportedOperationException();
093    }
094
095    @Override
096    public String getRevision() throws IOException, InterruptedException, UnsupportedOperationException {
097        throw new UnsupportedOperationException();
098    }
099
100    @Override
101    public String getSerial() throws IOException, InterruptedException, UnsupportedOperationException {
102        throw new UnsupportedOperationException();
103    }
104
105    @Override
106    public String getOsName() throws UnsupportedOperationException {
107        throw new UnsupportedOperationException();
108    }
109
110    @Override
111    public String getOsVersion() throws UnsupportedOperationException {
112        throw new UnsupportedOperationException();
113    }
114
115    @Override
116    public String getOsArch() throws UnsupportedOperationException {
117        throw new UnsupportedOperationException();
118    }
119
120    @Override
121    public String getOsFirmwareBuild() throws IOException, InterruptedException, UnsupportedOperationException {
122        throw new UnsupportedOperationException();
123    }
124
125    @Override
126    public String getOsFirmwareDate() throws IOException, InterruptedException, ParseException, UnsupportedOperationException {
127        throw new UnsupportedOperationException();
128    }
129
130    @Override
131    public String getJavaVendor() throws UnsupportedOperationException {
132        throw new UnsupportedOperationException();
133    }
134
135    @Override
136    public String getJavaVendorUrl() throws UnsupportedOperationException {
137        throw new UnsupportedOperationException();
138    }
139
140    @Override
141    public String getJavaVersion() throws UnsupportedOperationException {
142        throw new UnsupportedOperationException();
143    }
144
145    @Override
146    public String getJavaVirtualMachine() throws UnsupportedOperationException {
147        throw new UnsupportedOperationException();
148    }
149
150    @Override
151    public String getJavaRuntime() throws UnsupportedOperationException {
152        throw new UnsupportedOperationException();
153    }
154
155    @Override
156    public boolean isHardFloatAbi() throws UnsupportedOperationException {
157        throw new UnsupportedOperationException();
158    }
159
160    @Override
161    public long getMemoryTotal() throws IOException, InterruptedException, UnsupportedOperationException {
162        throw new UnsupportedOperationException();
163    }
164
165    @Override
166    public long getMemoryUsed() throws IOException, InterruptedException, UnsupportedOperationException {
167        throw new UnsupportedOperationException();
168    }
169
170    @Override
171    public long getMemoryFree() throws IOException, InterruptedException, UnsupportedOperationException {
172        throw new UnsupportedOperationException();
173    }
174
175    @Override
176    public long getMemoryShared() throws IOException, InterruptedException, UnsupportedOperationException {
177        throw new UnsupportedOperationException();
178    }
179
180    @Override
181    public long getMemoryBuffers() throws IOException, InterruptedException, UnsupportedOperationException {
182        throw new UnsupportedOperationException();
183    }
184
185    @Override
186    public long getMemoryCached() throws IOException, InterruptedException, UnsupportedOperationException {
187        throw new UnsupportedOperationException();
188    }
189
190    @Override
191    public SystemInfo.BoardType getBoardType() throws IOException, InterruptedException, UnsupportedOperationException {
192        throw new UnsupportedOperationException();
193    }
194
195    @Override
196    public float getCpuTemperature() throws IOException, InterruptedException, NumberFormatException, UnsupportedOperationException {
197        throw new UnsupportedOperationException();
198    }
199
200    @Override
201    public float getCpuVoltage() throws IOException, InterruptedException, NumberFormatException, UnsupportedOperationException {
202        throw new UnsupportedOperationException();
203    }
204
205    @Override
206    public float getMemoryVoltageSDRam_C() throws IOException, InterruptedException, NumberFormatException, UnsupportedOperationException {
207        throw new UnsupportedOperationException();
208    }
209
210    @Override
211    public float getMemoryVoltageSDRam_I() throws IOException, InterruptedException, NumberFormatException, UnsupportedOperationException {
212        throw new UnsupportedOperationException();
213    }
214
215    @Override
216    public float getMemoryVoltageSDRam_P() throws IOException, InterruptedException, NumberFormatException, UnsupportedOperationException {
217        throw new UnsupportedOperationException();
218    }
219
220    @Override
221    public boolean getCodecH264Enabled() throws IOException, InterruptedException, UnsupportedOperationException {
222        throw new UnsupportedOperationException();
223    }
224
225    @Override
226    public boolean getCodecMPG2Enabled() throws IOException, InterruptedException, UnsupportedOperationException {
227        throw new UnsupportedOperationException();
228    }
229
230    @Override
231    public boolean getCodecWVC1Enabled() throws IOException, InterruptedException, UnsupportedOperationException {
232        throw new UnsupportedOperationException();
233    }
234
235    @Override
236    public long getClockFrequencyArm() throws IOException, InterruptedException, UnsupportedOperationException {
237        throw new UnsupportedOperationException();
238    }
239
240    @Override
241    public long getClockFrequencyCore() throws IOException, InterruptedException, UnsupportedOperationException {
242        throw new UnsupportedOperationException();
243    }
244
245    @Override
246    public long getClockFrequencyH264() throws IOException, InterruptedException, UnsupportedOperationException {
247        throw new UnsupportedOperationException();
248    }
249
250    @Override
251    public long getClockFrequencyISP() throws IOException, InterruptedException, UnsupportedOperationException {
252        throw new UnsupportedOperationException();
253    }
254
255    @Override
256    public long getClockFrequencyV3D() throws IOException, InterruptedException, UnsupportedOperationException {
257        throw new UnsupportedOperationException();
258    }
259
260    @Override
261    public long getClockFrequencyUART() throws IOException, InterruptedException, UnsupportedOperationException {
262        throw new UnsupportedOperationException();
263    }
264
265    @Override
266    public long getClockFrequencyPWM() throws IOException, InterruptedException, UnsupportedOperationException {
267        throw new UnsupportedOperationException();
268    }
269
270    @Override
271    public long getClockFrequencyEMMC() throws IOException, InterruptedException, UnsupportedOperationException {
272        throw new UnsupportedOperationException();
273    }
274
275    @Override
276    public long getClockFrequencyPixel() throws IOException, InterruptedException, UnsupportedOperationException {
277        throw new UnsupportedOperationException();
278    }
279
280    @Override
281    public long getClockFrequencyVEC() throws IOException, InterruptedException, UnsupportedOperationException {
282        throw new UnsupportedOperationException();
283    }
284
285    @Override
286    public long getClockFrequencyHDMI() throws IOException, InterruptedException, UnsupportedOperationException {
287        throw new UnsupportedOperationException();
288    }
289
290    @Override
291    public long getClockFrequencyDPI() throws IOException, InterruptedException, UnsupportedOperationException {
292        throw new UnsupportedOperationException();
293    }
294}