abstract struct Place::Router::SignalGraph::Node::Ref

Overview

Base structure for referring to a node within the graph.

Direct Known Subclasses

Defined in:

place/router/signal_graph/node.cr

Constant Summary

DEFAULT_LAYER = "all"

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Class Method Detail

def self.resolve?(key : String, sys = nil) #

Resolves a string-based node key to a fully-qualified reference.

If a system component is not present within key, this is resolved within the context of sys. For example:

Ref.resolve("Display_1:hdmi", "sys-abc123")

=> DeviceInput(sys: "sys-abc123", mod: {"Display", 1}, input: "hdmi")


[View source]

Instance Method Detail

def ==(other : Ref) #

[View source]
def id #

Node identifier for usage as the graph ID.


[View source]
def initialize #

[View source]
def layer #

[View source]
def local(sys : String) #

[View source]
abstract def mod #

[View source]
def to_json(json) #

[View source]