#include "OperatingSystemMBB.h"
Represents the operating system motherboard.
The UOperatingSystemMBB class is a child class of UOperatingSystemBaseHardware and represents the operating system motherboard. It provides functionality to manage the BIOS, supported CPU sockets, supported devices, clock tick, validation, and more.
◆ UOperatingSystemMBB()
UOperatingSystemMBB::UOperatingSystemMBB |
( |
| ) |
|
◆ CanOpenBIOS()
bool UOperatingSystemMBB::CanOpenBIOS |
( |
| ) |
const |
Determines whether the BIOS can be opened. This function returns a boolean value indicating whether the BIOS can be opened. It checks if the BIOS is valid and if the current state of the parent device is either "Starting" or "BIOS".
- Returns
- True if the BIOS can be opened, false otherwise.
◆ ClockTick()
void UOperatingSystemMBB::ClockTick |
( |
| ) |
const |
Performs a clock tick on the operating system motherboard.
The ClockTick method performs a clock tick on the operating system motherboard. It calls the ClockTick method of the parent device, which propagates the clock tick to the appropriate components. This method is const and does not modify the state of the object.
- See also
- UOperatingSystemBaseDevice::ClockTick
◆ CreateMotherboard()
Creates a motherboard for the given owning device.
This method creates a motherboard object for the given owning device. It checks if the owning device has a valid motherboard class, and if not, sets the error message in OutError and returns nullptr. If the owning device has a valid motherboard class, the method creates the motherboard object, performs validation, and initializes it. If any validation or initialization steps fail, the error message is set in OutError and the motherboard object is marked as garbage and returned as nullptr. On success, the created motherboard object is returned.
- Parameters
-
OwningDevice | The owning device for which to create the motherboard. |
OutError | A reference to a FGenericError object that will hold the error message if an error occurs. |
- Returns
- A pointer to the created motherboard object, or nullptr if an error occurs.
- See also
- UOperatingSystemMBB, UOperatingSystemBaseDevice
◆ GetBIOS()
Returns the BIOS of the operating system motherboard. This method retrieves and returns the BIOS of the operating system motherboard.
- Returns
- A reference to an instance of UOperatingSystemBIOS representing the BIOS of the operating system motherboard.
◆ GetMaxCpuSpeed()
FORCEINLINE float UOperatingSystemMBB::GetMaxCpuSpeed |
( |
| ) |
const |
|
inline |
Get the maximum CPU speed of the operating system motherboard.
This method returns the maximum CPU speed supported by the operating system motherboard.
- Returns
- The maximum CPU speed.
◆ GetParentDevice()
Retrieves the parent device actor associated with this operating system motherboard.
- Returns
- The parent device actor, or nullptr if no parent device actor is set.
- See also
- UOperatingSystemBaseDevice, ParentDevice
◆ IsCpuSocketSupported()
bool UOperatingSystemMBB::IsCpuSocketSupported |
( |
const FGameplayTag & | CpuSocketTag | ) |
const |
Checks if the provided CPU socket tag is supported by the operating system motherboard. The IsCpuSocketSupported method checks if the provided CPU socket tag is supported by the operating system motherboard. It returns true if the tag is supported, false otherwise.
- Parameters
-
CpuSocketTag | The CPU socket tag to check. |
- Returns
- True if the CPU socket tag is supported, false otherwise.
- See also
- SupportedCpuSockets
-
InvalidTag
◆ IsRamSizeSupported()
Check if a given RAM size is supported by the operating system motherboard.
This method checks if a given RAM size is supported by the operating system motherboard. The supported RAM size is determined by the MaxSupportedRamSize
property.
- Parameters
-
TestSize | The RAM size to be tested. It should be one of the values defined in the EOperatingSystemCommonSizes enumeration. |
- Returns
true
if the given RAM size is supported, false
otherwise.
◆ OnValidate()
bool UOperatingSystemMBB::OnValidate |
( |
FGenericError & | OutError | ) |
const |
|
overrideprotectedvirtual |
Validates the operating system motherboard.
The OnValidate method validates the operating system motherboard by checking various conditions. If any validation step fails, an error message is set in the OutError parameter and the method returns false. If all validation steps pass, the method returns true, indicating that the operating system motherboard is valid.
- Parameters
-
OutError | A reference to a FGenericError object that will hold the error message if validation fails. |
- Returns
- True if the operating system motherboard is valid, false otherwise.
Reimplemented from UOperatingSystemBaseHardware.
◆ TryOpenBIOS()
bool UOperatingSystemMBB::TryOpenBIOS |
( |
| ) |
|
This method is used to try opening the BIOS. If it is possible to open the BIOS, it will call the OpenBIOS method and return true. Otherwise, it will return false.
- Returns
- True if the BIOS was successfully opened, false otherwise.
- See:
CanOpenBIOS, OpenBIOS
◆ BIOS
◆ BiosClass
Bios that belongs to this Motherboard.
◆ MaxCpuSpeed
float UOperatingSystemMBB::MaxCpuSpeed |
|
protected |
Maximum speed the CPU can have on this motherboard. If the CPU speed is higher than this one, device won't start.
◆ MaxSupportedRamSize
Indicates the maximum supported RAM size for the operating system motherboard.
◆ ParentDevice
The device that owns this motherboard
◆ SupportedCpuSockets
FGameplayTagContainer UOperatingSystemMBB::SupportedCpuSockets |
|
protected |
Supported cpu sockets. If empty, it is assumed all CPU sockets are supported.
◆ SupportedDevices
FGameplayTagContainer UOperatingSystemMBB::SupportedDevices |
|
protected |
List of devices this Motherboard supports. If empty, it is assumed all devices are supported.
The documentation for this class was generated from the following files: