Package oshi.hardware.common
Class AbstractComputerSystem
java.lang.Object
oshi.hardware.common.AbstractComputerSystem
- All Implemented Interfaces:
ComputerSystem
@Immutable public abstract class AbstractComputerSystem extends java.lang.Object implements ComputerSystem
Computer System data.
-
Constructor Summary
Constructors Constructor Description AbstractComputerSystem()
-
Method Summary
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
getManufacturer, getModel, getSerialNumber
-
Constructor Details
-
AbstractComputerSystem
public AbstractComputerSystem()
-
-
Method Details
-
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
Instantiates the platform-specificFirmware
object- Returns:
- platform-specific
Firmware
object
-
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
Instantiates the platform-specificBaseboard
object- Returns:
- platform-specific
Baseboard
object
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-