Operating System Simulator Plugin  3.5.1
Unreal Engine plugin that simulates an Operating System Environment
Loading...
Searching...
No Matches
UOperatingSystemRAM Class Reference

#include "OperatingSystemRAM.h"

Inheritance diagram for UOperatingSystemRAM:
[legend]
Collaboration diagram for UOperatingSystemRAM:
[legend]

Public Member Functions

 UOperatingSystemRAM ()
 
- Public Member Functions inherited from UOperatingSystemBaseHardware
 UOperatingSystemBaseHardware ()
 
FText GetHardwareName () const
 
FText GetHardwareMadeBy () const
 
FText GetModelNumber () const
 
FString GetHardwareNameAsString () const
 Returns the name of the hardware as a string.
 
FGameplayTag GetHardwareTag () const
 Returns the hardware tag associated with the hardware object.
 

Static Public Member Functions

static UE_NODISCARD UOperatingSystemRAMCreateRAM (UOperatingSystemMBB *OwningMotherboard, FGenericError &OutError)
 

Protected Member Functions

virtual bool OnValidate (FGenericError &OutError) const override
 
- Protected Member Functions inherited from UOperatingSystemBaseHardware
bool Validate (FGenericError &OutError) const
 Validates the current state of the operating system hardware object.
 
bool K2_OnValidate (FGenericError &OutError) const
 

Additional Inherited Members

- Protected Attributes inherited from UOperatingSystemBaseHardware
FText Name
 
FText MadeBy
 
FText ModelNumber
 
FGameplayTag HardwareTag
 
bool bHasBlueprintValidateFunction
 

Detailed Description

UOperatingSystemRAM is a class that represents the RAM (Random Access Memory) of an operating system. It is derived from UOperatingSystemBaseHardware. This class provides functionality to create RAM, validate RAM, and store the size of the RAM.

Constructor & Destructor Documentation

◆ UOperatingSystemRAM()

UOperatingSystemRAM::UOperatingSystemRAM ( )

Member Function Documentation

◆ CreateRAM()

UOperatingSystemRAM * UOperatingSystemRAM::CreateRAM ( UOperatingSystemMBB * OwningMotherboard,
FGenericError & OutError )
static

Creates a RAM object for the operating system. This method creates a RAM object for the specified OwningMotherboard and returns it.

Parameters
OwningMotherboard- Pointer to UOperatingSystemMBB object representing the motherboard that owns the RAM.
OutError- Reference to FGenericError object to store any error that occurs during the creation process.
Returns
UOperatingSystemRAM* - Pointer to the created RAM object if successful, nullptr otherwise.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnValidate()

bool UOperatingSystemRAM::OnValidate ( FGenericError & OutError) const
overrideprotectedvirtual

Validates the RAM (Random Access Memory) of the operating system.

This method validates the RAM by checking if the HardwareTag matches the RamTag. If they don't match, an error message is set in the OutError parameter and false is returned. It also checks if the size of the RAM is supported by the ParentMotherboard. If the size is not supported, an error message is set in the OutError parameter and false is returned If both checks pass, true is returned.

Parameters
OutError- Reference to a FGenericError object to store any error that occurs during the validation process.
Returns
bool - True if the RAM is valid, false otherwise.

Reimplemented from UOperatingSystemBaseHardware.


The documentation for this class was generated from the following files: