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

Parameters
Name Type Description

Page Size pageSize

Int

The size of the returned page.

Page page

Int

The index of the page you want to return. Negative to start indexing at the bottom (latest entries first).

Return Values
Name Type Description

Log log

Array<Struct<LogEntry>>

The Log page you wanted to retrieve.

Log Size logSize

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

Return Values
Name Type Description

Result result

Int

The current internal kernel state.

startComputer ()

Starts the Computer (Processor).

Details

Flags

RuntimeSync MemberFunc

Display Name

Start Computer

stopComputer ()

Stops the Computer (Processor).

Details

Flags

RuntimeSync MemberFunc

Display Name

Stop Computer

Signals

ComputerStateChanged (Int Previous State prevState, Int New State newState)

Triggers when the computers state changes.

Details
Parameters
Name Type Description

Previous State prevState

Int

The previous computer state.

New State newState

Int

The new computer state.

FileSystemUpdate (Int Type type, String From from, String To to)

Triggers when something in the filesystem changes.

Details
Parameters
Name Type Description

Type type

Int

The type of the change.

From from

String

The file path to the FS node that has changed.

To to

String

The new file path of the node if it has changed.