fm.liveswitch.Platform Class Reference

Platform-specific methods. More...

Public Member Functions

boolean getIsMobile ()
 Gets a value indicating whether this is a mobile platform. More...
 
void setIsMobile (boolean isMobile)
 Sets a value indicating whether this is a mobile platform. More...
 
boolean getIsLittleEndian ()
 Gets a value indicating whether this is little-endian platform. More...
 
OperatingSystem getOperatingSystem ()
 Gets the current operating system. More...
 
String getOperatingSystemVersion ()
 Gets the current operating system version. More...
 
String getDirectorySeparator ()
 Gets the character used to separate directories. More...
 
SourceLanguage getSourceLanguage ()
 Gets the current programming language for the source code. More...
 
int getProcessId ()
 Gets the id of the current process. More...
 
PlatformType getType ()
 Gets the current PlatformType. More...
 
String getPlatformTypeVersion ()
 Gets the current platform type version. More...
 
String toString (boolean isVerbose)
 Gets the string representation of the PlatformType and Version, if isVerbose is true the OS and OS version are included as well. More...
 
Architecture getArchitecture ()
 Gets the current CPU architecture. More...
 
int getCoreCount ()
 Gets the current CPU core count. More...
 
long getPhysicalMemory ()
 Gets the current physical memory in bytes. More...
 
String getMachineName ()
 Gets the current machine name. More...
 
boolean getUseFipsAlgorithms ()
 Gets a value that indicates whether FIPS algorithms should be used. More...
 
void setUseFipsAlgorithms (boolean useFipsAlgorithms)
 Sets a value that indicates whether FIPS algorithms should be used. More...
 
CryptoLibrary getCryptoLibrary ()
 Gets the cryptography library to use. More...
 
void setCryptoLibrary (CryptoLibrary cryptoLibrary)
 
- Public Member Functions inherited from fm.liveswitch.IPlatform
abstract void setCryptoLibrary (fm.liveswitch.CryptoLibrary value)
 Sets the cryptography library to use. More...
 

Static Public Member Functions

static IPlatform getInstance ()
 

Detailed Description

Platform-specific methods.

Member Function Documentation

◆ getArchitecture()

Architecture fm.liveswitch.Platform.getArchitecture ( )

Gets the current CPU architecture.

Implements fm.liveswitch.IPlatform.

◆ getCoreCount()

int fm.liveswitch.Platform.getCoreCount ( )

Gets the current CPU core count.

Implements fm.liveswitch.IPlatform.

◆ getCryptoLibrary()

CryptoLibrary fm.liveswitch.Platform.getCryptoLibrary ( )

Gets the cryptography library to use.

Implements fm.liveswitch.IPlatform.

◆ getDirectorySeparator()

String fm.liveswitch.Platform.getDirectorySeparator ( )

Gets the character used to separate directories.

Implements fm.liveswitch.IPlatform.

◆ getInstance()

static IPlatform fm.liveswitch.Platform.getInstance ( )
static

◆ getIsLittleEndian()

boolean fm.liveswitch.Platform.getIsLittleEndian ( )

Gets a value indicating whether this is little-endian platform.

Implements fm.liveswitch.IPlatform.

◆ getIsMobile()

boolean fm.liveswitch.Platform.getIsMobile ( )

Gets a value indicating whether this is a mobile platform.

Returns

Implements fm.liveswitch.IPlatform.

◆ getMachineName()

String fm.liveswitch.Platform.getMachineName ( )

Gets the current machine name.

Implements fm.liveswitch.IPlatform.

◆ getOperatingSystem()

OperatingSystem fm.liveswitch.Platform.getOperatingSystem ( )

Gets the current operating system.

Implements fm.liveswitch.IPlatform.

◆ getOperatingSystemVersion()

String fm.liveswitch.Platform.getOperatingSystemVersion ( )

Gets the current operating system version.

Implements fm.liveswitch.IPlatform.

◆ getPhysicalMemory()

long fm.liveswitch.Platform.getPhysicalMemory ( )

Gets the current physical memory in bytes.

Implements fm.liveswitch.IPlatform.

◆ getPlatformTypeVersion()

String fm.liveswitch.Platform.getPlatformTypeVersion ( )

Gets the current platform type version.

Implements fm.liveswitch.IPlatform.

◆ getProcessId()

int fm.liveswitch.Platform.getProcessId ( )

Gets the id of the current process.

Implements fm.liveswitch.IPlatform.

◆ getSourceLanguage()

SourceLanguage fm.liveswitch.Platform.getSourceLanguage ( )

Gets the current programming language for the source code.

Implements fm.liveswitch.IPlatform.

◆ getType()

PlatformType fm.liveswitch.Platform.getType ( )

Gets the current PlatformType.

Implements fm.liveswitch.IPlatform.

◆ getUseFipsAlgorithms()

boolean fm.liveswitch.Platform.getUseFipsAlgorithms ( )

Gets a value that indicates whether FIPS algorithms should be used.

Note that not all platforms or third-party libraries are FIPS-compliant, so this should not be used as a guarantee of FIPS compliance.

Implements fm.liveswitch.IPlatform.

◆ setCryptoLibrary()

void fm.liveswitch.Platform.setCryptoLibrary ( CryptoLibrary  cryptoLibrary)

◆ setIsMobile()

void fm.liveswitch.Platform.setIsMobile ( boolean  isMobile)

Sets a value indicating whether this is a mobile platform.

Returns

Implements fm.liveswitch.IPlatform.

◆ setUseFipsAlgorithms()

void fm.liveswitch.Platform.setUseFipsAlgorithms ( boolean  value)

Sets a value that indicates whether FIPS algorithms should be used.

Note that not all platforms or third-party libraries are FIPS-compliant, so this should not be used as a guarantee of FIPS compliance.

Implements fm.liveswitch.IPlatform.

◆ toString()

String fm.liveswitch.Platform.toString ( boolean  isVerbose)

Gets the string representation of the PlatformType and Version, if isVerbose is true the OS and OS version are included as well.

Implements fm.liveswitch.IPlatform.