Home › Packages › systems

Package systems

This package contains 9 source unit(s) defining 9 class(es) / struct(s). Each unit below lists its fields (the values it stores) and methods (the actions it performs), with a plain explanation of each.

SLCPUInfo #sleela 2.5 (lib/systems/SLCPUInfo.sleela)

SLCPUInfo class

CPU and memory metadata shape matching osls_cpu_info. >

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
vendorString vendor = ""No description in source.
modelString model = ""No description in source.
logicalCoresint logicalCores = 0No description in source.
physicalCoresint physicalCores = 0No description in source.
cacheLineSizeint cacheLineSize = 0No description in source.
totalMemoryBytesint totalMemoryBytes = 0No description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
getVendorString getVendor()No description in source.
getModelString getModel()No description in source.
getLogicalCoresint getLogicalCores()No description in source.
getPhysicalCoresint getPhysicalCores()No description in source.
getCacheLineSizeint getCacheLineSize()No description in source.
getTotalMemoryBytesint getTotalMemoryBytes()No description in source.

SLCronExpression #sleela 2.5 (lib/systems/SLCronExpression.sleela)

SLCronExpression class

Contract shape for the native five-field cron helpers.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
expressionString expression = ""No description in source.
timezoneString timezone = "process local timezone"No description in source.
searchHorizonYearsint searchHorizonYears = 5No description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
getExpressionString getExpression()No description in source.
getTimezoneString getTimezone()No description in source.
getSearchHorizonYearsint getSearchHorizonYears()No description in source.

SLFileInfo #sleela 2.5 (lib/systems/SLFileInfo.sleela)

SLFileInfo class

Read-only file metadata shape matching osls_file_info.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
pathString path = ""No description in source.
sizeBytesint sizeBytes = 0No description in source.
modifiedEpochSecondsint modifiedEpochSeconds = 0No description in source.
createdEpochSecondsint createdEpochSeconds = 0No description in source.
directoryboolean directory = falseNo description in source.
regularFileboolean regularFile = falseNo description in source.
readableboolean readable = falseNo description in source.
writableboolean writable = falseNo description in source.
executableboolean executable = falseNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
getPathString getPath()No description in source.
getSizeBytesint getSizeBytes()No description in source.
getModifiedEpochSecondsint getModifiedEpochSeconds()No description in source.
getCreatedEpochSecondsint getCreatedEpochSeconds()No description in source.
isDirectoryboolean isDirectory()No description in source.
isRegularFileboolean isRegularFile()No description in source.
isReadableboolean isReadable()No description in source.
isWritableboolean isWritable()No description in source.
isExecutableboolean isExecutable()No description in source.

SLNetworkInterface #sleela 2.5 (lib/systems/SLNetworkInterface.sleela)

SLNetworkInterface class

Network interface metadata shape matching osls_network_interface. >

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
nameString name = ""No description in source.
macAddressString macAddress = ""No description in source.
ipv4String ipv4 = ""No description in source.
ipv6String ipv6 = ""No description in source.
upboolean up = falseNo description in source.
loopbackboolean loopback = falseNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
getNameString getName()No description in source.
getMacAddressString getMacAddress()No description in source.
getIPv4String getIPv4()No description in source.
getIPv6String getIPv6()No description in source.
isUpboolean isUp()No description in source.
isLoopbackboolean isLoopback()No description in source.

SLPackage #sleela 2.5 (lib/systems/SLPackage.sleela)

SLPackage class

Defines the SLeeLa standard-library package for systems.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
packageNameString packageNameNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
configurevoid configure(String name)No description in source.
nameString name()No description in source.
availableboolean available()No description in source.

SLProcessInfo #sleela 2.5 (lib/systems/SLProcessInfo.sleela)

SLProcessInfo class

Read-only process metadata shape matching osls_process_info.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
processIdint processId = 0No description in source.
parentProcessIdint parentProcessId = 0No description in source.
threadCountint threadCount = 0No description in source.
startEpochSecondsint startEpochSeconds = 0No description in source.
executablePathString executablePath = ""No description in source.
commandLineString commandLine = ""No description in source.
currentDirectoryString currentDirectory = ""No description in source.
stateString state = ""No description in source.
userNameString userName = ""No description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
getProcessIdint getProcessId()No description in source.
getParentProcessIdint getParentProcessId()No description in source.
getThreadCountint getThreadCount()No description in source.
getStartEpochSecondsint getStartEpochSeconds()No description in source.
getExecutablePathString getExecutablePath()No description in source.
getCommandLineString getCommandLine()No description in source.
getCurrentDirectoryString getCurrentDirectory()No description in source.
getStateString getState()No description in source.
getUserNameString getUserName()No description in source.

SLSystemInfo #sleela 2.5 (lib/systems/SLSystemInfo.sleela)

SLSystemInfo class

Read-only snapshot shape matching osls_system_info in osls.h.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
platformint platform = 0No description in source.
processIdint processId = 0No description in source.
unixTimeSecondsint unixTimeSeconds = 0No description in source.
monotonicTimeNanosecondsint monotonicTimeNanoseconds = 0No description in source.
hostnameString hostname = ""No description in source.
userNameString userName = ""No description in source.
workingDirectoryString workingDirectory = ""No description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
getPlatformint getPlatform()No description in source.
getProcessIdint getProcessId()No description in source.
getUnixTimeSecondsint getUnixTimeSeconds()No description in source.
getMonotonicTimeNanosecondsint getMonotonicTimeNanoseconds()No description in source.
getHostnameString getHostname()No description in source.
getUserNameString getUserName()No description in source.
getWorkingDirectoryString getWorkingDirectory()No description in source.

SLSystemStatus #sleela 2.5 (lib/systems/SLSystemStatus.sleela)

SLSystemStatus class

Status and platform values for the native OS-level-support C ABI.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
OKint OK = 0No description in source.
INVALID_ARGUMENTint INVALID_ARGUMENT = 1No description in source.
BUFFER_TOO_SMALLint BUFFER_TOO_SMALL = 2No description in source.
SYSTEM_ERRORint SYSTEM_ERROR = 3No description in source.
NOT_FOUNDint NOT_FOUND = 4No description in source.
UNSUPPORTEDint UNSUPPORTED = 5No description in source.
PLATFORM_UNKNOWNint PLATFORM_UNKNOWN = 0No description in source.
PLATFORM_LINUXint PLATFORM_LINUX = 1No description in source.
PLATFORM_MACOSint PLATFORM_MACOS = 2No description in source.
PLATFORM_WINDOWSint PLATFORM_WINDOWS = 3No description in source.

SLTimezoneInfo #sleela 2.5 (lib/systems/SLTimezoneInfo.sleela)

SLTimezoneInfo class

Timezone metadata shape matching osls_timezone_info. >

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
idString id = ""No description in source.
abbreviationString abbreviation = ""No description in source.
offsetMinutesFromUtcint offsetMinutesFromUtc = 0No description in source.
daylightSavingTimeboolean daylightSavingTime = falseNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
getIdString getId()No description in source.
getAbbreviationString getAbbreviation()No description in source.
getOffsetMinutesFromUtcint getOffsetMinutesFromUtc()No description in source.
isDaylightSavingTimeboolean isDaylightSavingTime()No description in source.