Computer Case
Parent |
Functions
getLog (pageSize : Int, page : Int) → (log : Array<Struct<LogEntry>>, logSize : Int)
Returns the log of the computer. Output is paginated using the input parameters. A negative Page will indicate pagination from the bottom (latest log entry first).
Details
Flags |
RuntimeSync MemberFunc |
Display Name |
Get Log |
| Name | Type | Description |
|---|---|---|
Page Size |
Int |
The size of the returned page. |
Page |
Int |
The index of the page you want to return. Negative to start indexing at the bottom (latest entries first). |
| Name | Type | Description |
|---|---|---|
Log |
Array<Struct<LogEntry>> |
The Log page you wanted to retrieve. |
Log Size |
Int |
The size of the full log (not just the returned page). |
getState () → result : Int
Returns the internal kernel state of the computer.
Details
Flags |
RuntimeSync RuntimeParallel MemberFunc |
Display Name |
Get State |
| Name | Type | Description |
|---|---|---|
Result |
Int |
The current internal kernel state. |
Signals
ComputerStateChanged (Int Previous State prevState, Int New State newState)
Triggers when the computers state changes.
Details
| Name | Type | Description |
|---|---|---|
Previous State |
Int |
The previous computer state. |
New State |
Int |
The new computer state. |
FileSystemUpdate (Int Type type, String From from, String To to)
Triggers when something in the filesystem changes.
Details
| Name | Type | Description |
|---|---|---|
Type |
Int |
The type of the change. |
From |
String |
The file path to the FS node that has changed. |
To |
String |
The new file path of the node if it has changed. |