Extended

eu.joaocosta.minart.backend.subsystem.LowLevelSubsystem.Extended
trait Extended[Settings, ExtendedSettings] extends LowLevelSubsystem[Settings]

Low-level subsystem that keeps an internal extended representation of the settings.

Useful when some common values can be computed during initialization.

Attributes

Graph
Supertypes
trait LowLevelSubsystem[Settings]
trait AutoCloseable
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

protected def defaultSettings: ExtendedSettings

Default settings to use when the value is not initialized.

Default settings to use when the value is not initialized.

Attributes

protected def elideSettings(extendedSettings: ExtendedSettings): Settings

Convert the extended settings into settings.

Convert the extended settings into settings.

Attributes

protected def unsafeApplySettings(settings: Settings): ExtendedSettings

Configures the subsystem according to the settings and returns the applied extended settings.

Configures the subsystem according to the settings and returns the applied extended settings.

Attributes

protected def unsafeDestroy(): Unit

Unsafe implementation of the subsystem destroy.

Unsafe implementation of the subsystem destroy.

Attributes

protected def unsafeInit(): Unit

Unsafe implementation of the subsystem init.

Unsafe implementation of the subsystem init.

Attributes

Concrete 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 extendedSettings: ExtendedSettings
def init(settings: Settings): Extended.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

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

Concrete fields

protected var _extendedSettings: ExtendedSettings