LowLevelSubsystem

eu.joaocosta.minart.backend.subsystem.LowLevelSubsystem
See theLowLevelSubsystem companion object
trait LowLevelSubsystem[Settings] extends AutoCloseable

A low-level subsystem with init and close operations.

Attributes

Companion
object
Graph
Supertypes
trait AutoCloseable
class Object
trait Matchable
class Any
Known subtypes
trait Extended[Settings, ExtendedSettings]
trait Simple[Settings]
Show all

Members list

Value members

Abstract methods

def changeSettings(newSettings: Settings): Unit

Changes the settings of the subsystem.

Changes the settings of the subsystem.

Value parameters

newSettings

new settings to apply

Attributes

def close(): Unit

Destroys the subsystem.

Destroys the subsystem.

Calling any operation on this object after calling close() without calling init() has an undefined behavior.

Attributes

def init(settings: Settings): this.type

Creates the subsystem.

Creates the subsystem.

Operations can only be called after calling this.

Value parameters

settings

settings used to configure the subsystem

Attributes

Returns

this subsystem

def isCreated(): Boolean

Checks if the subsystem is created or if it has been destroyed.

Checks if the subsystem is created or if it has been destroyed.

Attributes

def settings: Settings

Returns the current settings.

Returns the current settings.

Attributes