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 BaseboardcreateBaseboard()Instantiates the platform-specificBaseboardobjectprotected abstract FirmwarecreateFirmware()Instantiates the platform-specificFirmwareobjectBaseboardgetBaseboard()Get the computer system baseboard/motherboard.FirmwaregetFirmware()Get the computer system firmware/BIOS.java.lang.StringtoString()-
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:ComputerSystemGet the computer system firmware/BIOS.- Specified by:
getFirmwarein interfaceComputerSystem- Returns:
- A
Firmwareobject for this system
-
createFirmware
protected abstract Firmware createFirmware()
Instantiates the platform-specificFirmwareobject- Returns:
- platform-specific
Firmwareobject
-
getBaseboard
public Baseboard getBaseboard()
Description copied from interface:ComputerSystemGet the computer system baseboard/motherboard.- Specified by:
getBaseboardin interfaceComputerSystem- Returns:
- A
Baseboardobject for this system
-
createBaseboard
protected abstract Baseboard createBaseboard()
Instantiates the platform-specificBaseboardobject- Returns:
- platform-specific
Baseboardobject
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-