SessionLiveData

data class SessionLiveData(val id: Int, val name: String, val author: String, val description: String, val startTime: String, val stopTime: String?, val validationTime: String?, val counters: SessionCounters, val measurements: List<MeasurementSummary>, val resourceSources: List<ResourceDataSource>, val variables: Variables, val timeSync: List<TimeSync>, val activeSources: List<ActiveSource>, val version: String, val resourceFilters: List<String>, val meterStates: List<MeterState>, val meterSpecs: List<PowerMeter>, val activeMeasurement: ActiveMeasurement?, val writingLogs: Boolean?, val logPath: String? = null, val flags: List<SessionFlag>, val nodes: List<NodeEntry>, val planId: String?)

Live session data contains the rapidly changing session data that can be serialized as JSON messages for communicating with different frontends via an external API.

Constructors

Link copied to clipboard
constructor(id: Int, name: String, author: String, description: String, startTime: String, stopTime: String?, validationTime: String?, counters: SessionCounters, measurements: List<MeasurementSummary>, resourceSources: List<ResourceDataSource>, variables: Variables, timeSync: List<TimeSync>, activeSources: List<ActiveSource>, version: String, resourceFilters: List<String>, meterStates: List<MeterState>, meterSpecs: List<PowerMeter>, activeMeasurement: ActiveMeasurement?, writingLogs: Boolean?, logPath: String? = null, flags: List<SessionFlag>, nodes: List<NodeEntry>, planId: String?)

Properties

Link copied to clipboard

Active measurement if any

Link copied to clipboard

Active meter/channels

Link copied to clipboard

Author of the session; mutable property; can be changed with commands

Link copied to clipboard

Various session related counters

Link copied to clipboard

Description of the session; mutable property; can be changed with commands

Link copied to clipboard

State flags

Link copied to clipboard
val id: Int

ID of the session

Link copied to clipboard
val logPath: String? = null

List of active log files

Link copied to clipboard

Past measurements

Link copied to clipboard

States of the meters

Link copied to clipboard

States of the meters

Link copied to clipboard

Name of the session; mutable property; can be changed with commands

Link copied to clipboard

Associated nodes

Link copied to clipboard

Plan ID (unique UUID)

Link copied to clipboard

Field filters for resource consumption data

Link copied to clipboard

Resource consumption of different units

Link copied to clipboard

The timestamp of the start of the session, @see System.currentTimeMillis()

Link copied to clipboard

The timestamp of the end of the session, @see System.currentTimeMillis()

Link copied to clipboard

Timestamps of different units for synchronization

Link copied to clipboard

The time of validation, if any

Link copied to clipboard

Misc variables

Link copied to clipboard

Build version of the application

Link copied to clipboard

Tells whether the writer instance is active

Functions

Link copied to clipboard
open override fun toString(): String