Package oshi.hardware.common
Class AbstractComputerSystem
- java.lang.Object
-
- oshi.hardware.common.AbstractComputerSystem
-
- All Implemented Interfaces:
ComputerSystem
- Direct Known Subclasses:
AixComputerSystem
,FreeBsdComputerSystem
,LinuxComputerSystem
,MacComputerSystem
,OpenBsdComputerSystem
,SolarisComputerSystem
,WindowsComputerSystem
@Immutable public abstract class AbstractComputerSystem extends java.lang.Object implements ComputerSystem
Computer System data.
-
-
Constructor Summary
Constructors Constructor Description AbstractComputerSystem()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract Baseboard
createBaseboard()
Instantiates the platform-specificBaseboard
objectprotected abstract Firmware
createFirmware()
Instantiates the platform-specificFirmware
objectBaseboard
getBaseboard()
Get the computer system baseboard/motherboard.Firmware
getFirmware()
Get the computer system firmware/BIOS.java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface oshi.hardware.ComputerSystem
getHardwareUUID, getManufacturer, getModel, getSerialNumber
-
-
-
-
Method Detail
-
getFirmware
public Firmware getFirmware()
Description copied from interface:ComputerSystem
Get the computer system firmware/BIOS.- Specified by:
getFirmware
in interfaceComputerSystem
- Returns:
- A
Firmware
object for this system
-
createFirmware
protected abstract Firmware createFirmware()
Instantiates the platform-specificFirmware
object- Returns:
- platform-specific
Firmware
object
-
getBaseboard
public Baseboard getBaseboard()
Description copied from interface:ComputerSystem
Get the computer system baseboard/motherboard.- Specified by:
getBaseboard
in interfaceComputerSystem
- Returns:
- A
Baseboard
object for this system
-
createBaseboard
protected abstract Baseboard createBaseboard()
Instantiates the platform-specificBaseboard
object- Returns:
- platform-specific
Baseboard
object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-