Class: Player¶
The tape module's player: it plays a file of time,value rows into its parent's property, or
into its own value when the deck declares class player { double value; } (the GridAPPS-D run-file pattern,
read as
the C++ scrape does not read); the hidden checkpoint cursor (tape.cpp:306-333) is left out.
__
Type: Instance (tape)
__
CIM Mapping: ConformLoadGroup + ConformLoadSchedule (GLM_REWRITE_PLAN.md 8.9)
URI: glm:Player
classDiagram
class Player
click Player href "../Player/"
GlmObject <|-- Player
click GlmObject href "../GlmObject/"
Player : all_events_delta
Player : file
Player : filetype
Player : flags
Player : groupid
Player : in_svc
Player : latitude
Player : longitude
Player : loop
Player : mode
Player : name
Player : out_svc
Player : parent
Player : property
Player : rank
Inheritance¶
- GlmObject
- Player
Slots¶
| Name | Cardinality and Range | Description | Inheritance |
|---|---|---|---|
| property | 0..1 String |
The parent's property the rows set (unset with no parent; the player's own va... | direct |
| file | 0..1 String |
The tape file of time,value rows, relative to the deck | direct |
| filetype | 0..1 String |
The tape's type (the file's extension by default) | direct |
| mode | 0..1 String |
The tape's open mode | direct |
| loop | 0..1 Integer |
The number of times the tape is repeated | direct |
| all_events_delta | 0..1 Boolean |
Every row's time enters deltamode | direct |
| name | 1 String |
The object's name; unique across the model | GlmObject |
| parent | 0..1 String |
The parent object's name | GlmObject |
| groupid | 0..1 String |
Free-text group label | GlmObject |
| latitude | 0..1 String |
Latitude, as written (decimal degrees or GridLAB-D's 37N26:12 form) | GlmObject |
| longitude | 0..1 String |
Longitude, as written | GlmObject |
| in_svc | 0..1 String |
Timestamp the object enters service | GlmObject |
| out_svc | 0..1 String |
Timestamp the object leaves service | GlmObject |
| rank | 0..1 String |
Solver rank | GlmObject |
| flags | 0..1 String |
Core object flags | GlmObject |
Comments¶
- Import: a ConformLoadGroup lg_ + name and its ConformLoadSchedule ls_ + name, both named as the player (player.cimtbl); the points go to the Parquet sidecar. Export: each regular ConformLoadSchedule of a ConformLoadGroup, as a player named after the group.
Identifier and Mapping Information¶
Schema Source¶
- from schema: https://gridlabd.org/schema/glm
Mappings¶
| Mapping Type | Mapped Value |
|---|---|
| self | glm:Player |
| native | glm:Player |
| exact | cim:ConformLoadSchedule |
| close | cim:ConformLoadGroup |
LinkML Source¶
Direct¶
name: player
description: 'The tape module''s player: it plays a file of time,value rows into its
parent''s property, or
into its own value when the deck declares class player { double value; } (the GridAPPS-D
run-file pattern,
read as <player>.value by an expression). Written by hand from tape/tape.cpp:291-296
(PUBLISH_STRUCT, which
the C++ scrape does not read); the hidden checkpoint cursor (tape.cpp:306-333) is
left out.
Type: Instance (tape)
CIM Mapping: ConformLoadGroup + ConformLoadSchedule (GLM_REWRITE_PLAN.md 8.9)'
comments:
- 'Import: a ConformLoadGroup lg_ + name and its ConformLoadSchedule ls_ + name, both
named as the player (player.cimtbl); the points go to the Parquet sidecar. Export:
each regular ConformLoadSchedule of a ConformLoadGroup, as a player named after
the group.'
from_schema: https://gridlabd.org/schema/glm
exact_mappings:
- cim:ConformLoadSchedule
close_mappings:
- cim:ConformLoadGroup
is_a: glm_object
attributes:
property:
name: property
annotations:
order:
tag: order
value: 1
value_type:
tag: value_type
value: string
native_name:
tag: native_name
value: property
description: The parent's property the rows set (unset with no parent; the player's
own value)
comments:
- 'Import: structural; a player read as <name>.value has no parent, property,
filetype or mode, and set raises; loop must be unset or 0. Export: unset.'
from_schema: https://gridlabd.org/schema/glm/tape/player
rank: 1000
domain_of:
- player
range: string
required: false
file:
name: file
annotations:
order:
tag: order
value: 2
value_type:
tag: value_type
value: string
native_name:
tag: native_name
value: file
description: The tape file of time,value rows, relative to the deck
comments:
- 'Import: its rows are ConformLoadSchedule.startTime (the first row''s time,
as an offset), timeStep (s) and the points (value1, in the sidecar); unset raises.
Export: <name>.player beside the deck, the first row at startTime in GMT, each
later one +<step>s.'
from_schema: https://gridlabd.org/schema/glm/tape/player
related_mappings:
- cim:BasicIntervalSchedule.startTime
- cim:RegularIntervalSchedule.timeStep
- cim:RegularTimePoint.value1
domain_of:
- voltdump
- player
range: string
required: false
filetype:
name: filetype
annotations:
order:
tag: order
value: 3
value_type:
tag: value_type
value: string
native_name:
tag: native_name
value: filetype
description: The tape's type (the file's extension by default)
from_schema: https://gridlabd.org/schema/glm/tape/player
rank: 1000
domain_of:
- player
range: string
required: false
mode:
name: mode
annotations:
order:
tag: order
value: 4
value_type:
tag: value_type
value: string
native_name:
tag: native_name
value: mode
description: The tape's open mode
from_schema: https://gridlabd.org/schema/glm/tape/player
domain_of:
- currdump
- voltdump
- player
range: string
required: false
loop:
name: loop
annotations:
order:
tag: order
value: 5
value_type:
tag: value_type
value: int
native_name:
tag: native_name
value: loop
description: The number of times the tape is repeated
from_schema: https://gridlabd.org/schema/glm/tape/player
rank: 1000
domain_of:
- player
range: integer
required: false
all_events_delta:
name: all_events_delta
annotations:
order:
tag: order
value: 6
value_type:
tag: value_type
value: bool
native_name:
tag: native_name
value: all_events_delta
description: Every row's time enters deltamode
from_schema: https://gridlabd.org/schema/glm/tape/player
rank: 1000
domain_of:
- player
range: boolean
required: false
Induced¶
name: player
description: 'The tape module''s player: it plays a file of time,value rows into its
parent''s property, or
into its own value when the deck declares class player { double value; } (the GridAPPS-D
run-file pattern,
read as <player>.value by an expression). Written by hand from tape/tape.cpp:291-296
(PUBLISH_STRUCT, which
the C++ scrape does not read); the hidden checkpoint cursor (tape.cpp:306-333) is
left out.
Type: Instance (tape)
CIM Mapping: ConformLoadGroup + ConformLoadSchedule (GLM_REWRITE_PLAN.md 8.9)'
comments:
- 'Import: a ConformLoadGroup lg_ + name and its ConformLoadSchedule ls_ + name, both
named as the player (player.cimtbl); the points go to the Parquet sidecar. Export:
each regular ConformLoadSchedule of a ConformLoadGroup, as a player named after
the group.'
from_schema: https://gridlabd.org/schema/glm
exact_mappings:
- cim:ConformLoadSchedule
close_mappings:
- cim:ConformLoadGroup
is_a: glm_object
attributes:
property:
name: property
annotations:
order:
tag: order
value: 1
value_type:
tag: value_type
value: string
native_name:
tag: native_name
value: property
description: The parent's property the rows set (unset with no parent; the player's
own value)
comments:
- 'Import: structural; a player read as <name>.value has no parent, property,
filetype or mode, and set raises; loop must be unset or 0. Export: unset.'
from_schema: https://gridlabd.org/schema/glm/tape/player
rank: 1000
owner: player
domain_of:
- player
range: string
required: false
file:
name: file
annotations:
order:
tag: order
value: 2
value_type:
tag: value_type
value: string
native_name:
tag: native_name
value: file
description: The tape file of time,value rows, relative to the deck
comments:
- 'Import: its rows are ConformLoadSchedule.startTime (the first row''s time,
as an offset), timeStep (s) and the points (value1, in the sidecar); unset raises.
Export: <name>.player beside the deck, the first row at startTime in GMT, each
later one +<step>s.'
from_schema: https://gridlabd.org/schema/glm/tape/player
related_mappings:
- cim:BasicIntervalSchedule.startTime
- cim:RegularIntervalSchedule.timeStep
- cim:RegularTimePoint.value1
owner: player
domain_of:
- voltdump
- player
range: string
required: false
filetype:
name: filetype
annotations:
order:
tag: order
value: 3
value_type:
tag: value_type
value: string
native_name:
tag: native_name
value: filetype
description: The tape's type (the file's extension by default)
from_schema: https://gridlabd.org/schema/glm/tape/player
rank: 1000
owner: player
domain_of:
- player
range: string
required: false
mode:
name: mode
annotations:
order:
tag: order
value: 4
value_type:
tag: value_type
value: string
native_name:
tag: native_name
value: mode
description: The tape's open mode
from_schema: https://gridlabd.org/schema/glm/tape/player
owner: player
domain_of:
- currdump
- voltdump
- player
range: string
required: false
loop:
name: loop
annotations:
order:
tag: order
value: 5
value_type:
tag: value_type
value: int
native_name:
tag: native_name
value: loop
description: The number of times the tape is repeated
from_schema: https://gridlabd.org/schema/glm/tape/player
rank: 1000
owner: player
domain_of:
- player
range: integer
required: false
all_events_delta:
name: all_events_delta
annotations:
order:
tag: order
value: 6
value_type:
tag: value_type
value: bool
native_name:
tag: native_name
value: all_events_delta
description: Every row's time enters deltamode
from_schema: https://gridlabd.org/schema/glm/tape/player
rank: 1000
owner: player
domain_of:
- player
range: boolean
required: false
name:
name: name
annotations:
order:
tag: order
value: 0
value_type:
tag: value_type
value: string
native_name:
tag: native_name
value: name
description: The object's name; unique across the model.
comments:
- 'Import: <CIM class>.name, copied as written; mRID = the class''s prefix + name
(none on a bus). Export: Names, sanitized for GridLAB-D; a name two objects
share raises.'
from_schema: https://gridlabd.org/schema/glm/types/common
exact_mappings:
- cim:IdentifiedObject.name
rank: 1000
identifier: true
owner: player
domain_of:
- glm_object
range: string
required: true
parent:
name: parent
annotations:
order:
tag: order
value: 0
value_type:
tag: value_type
value: string
native_name:
tag: native_name
value: parent
description: The parent object's name. A child node is solved as its parent's
bus; a nested object block sets it to the enclosing object.
comments:
- 'Import: a bus whose parent is a bus is its root bus''s ConnectivityNode, named
on the root''s row; no object of its own. On a link it is not mapped.'
from_schema: https://gridlabd.org/schema/glm/types/common
rank: 1000
owner: player
domain_of:
- glm_object
range: string
groupid:
name: groupid
annotations:
order:
tag: order
value: 0
value_type:
tag: value_type
value: string
native_name:
tag: native_name
value: groupid
description: Free-text group label.
from_schema: https://gridlabd.org/schema/glm/types/common
rank: 1000
owner: player
domain_of:
- glm_object
range: string
latitude:
name: latitude
annotations:
order:
tag: order
value: 0
value_type:
tag: value_type
value: string
native_name:
tag: native_name
value: latitude
description: Latitude, as written (decimal degrees or GridLAB-D's 37N26:12 form).
comments:
- Not converted. Home is the EquipmentLocation shape.
from_schema: https://gridlabd.org/schema/glm/types/common
rank: 1000
owner: player
domain_of:
- glm_object
range: string
longitude:
name: longitude
annotations:
order:
tag: order
value: 0
value_type:
tag: value_type
value: string
native_name:
tag: native_name
value: longitude
description: Longitude, as written.
comments:
- Not converted. Home is the EquipmentLocation shape.
from_schema: https://gridlabd.org/schema/glm/types/common
rank: 1000
owner: player
domain_of:
- glm_object
range: string
in_svc:
name: in_svc
annotations:
order:
tag: order
value: 0
value_type:
tag: value_type
value: string
native_name:
tag: native_name
value: in_svc
description: Timestamp the object enters service.
from_schema: https://gridlabd.org/schema/glm/types/common
rank: 1000
owner: player
domain_of:
- glm_object
range: string
out_svc:
name: out_svc
annotations:
order:
tag: order
value: 0
value_type:
tag: value_type
value: string
native_name:
tag: native_name
value: out_svc
description: Timestamp the object leaves service.
from_schema: https://gridlabd.org/schema/glm/types/common
rank: 1000
owner: player
domain_of:
- glm_object
range: string
rank:
name: rank
annotations:
order:
tag: order
value: 0
value_type:
tag: value_type
value: string
native_name:
tag: native_name
value: rank
description: Solver rank.
from_schema: https://gridlabd.org/schema/glm/types/common
rank: 1000
owner: player
domain_of:
- glm_object
range: string
flags:
name: flags
annotations:
order:
tag: order
value: 0
value_type:
tag: value_type
value: string
native_name:
tag: native_name
value: flags
description: Core object flags.
from_schema: https://gridlabd.org/schema/glm/types/common
rank: 1000
owner: player
domain_of:
- glm_object
range: string