class Place::Router::SignalGraph::Node::Label

Overview

Metadata tracked against each signal node.

Included Modules

Extended Modules

Defined in:

place/router/signal_graph/node.cr

Constructors

Instance Method Summary

Instance methods inherited from module Place::Router::SignalGraph::Watchable

notify : Nil notify, watch(initial = true, &handler : self -> ) : Nil watch

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

[View source]

Instance Method Detail

def [](*args, **options) #

[View source]
def [](*args, **options, &) #

[View source]
def []=(key, value : JSON::Any) #

Sets a metadata property of self.


def []=(key, value : Int) #

def []=(key, value : Float) #

def []=(key, value : Array) #

def []=(key, value : Hash) #

def []=(key, value) #

def []?(*args, **options) #

[View source]
def []?(*args, **options, &) #

[View source]
def locked : Bool #

Locked state. When true changes to signal routes that transit this are blocked.


[View source]
def locked=(locked : Bool) #

Locked state. When true changes to signal routes that transit this are blocked.


def meta : Hash(String, JSON::Any) #

Additional metadata passed in from settings or dynamically applied. Information here is propogated to exposed state keys. May be used for any information needed by a user interface or external system.


[View source]
def meta=(meta : Hash(String, JSON::Any)) #

Additional metadata passed in from settings or dynamically applied. Information here is propogated to exposed state keys. May be used for any information needed by a user interface or external system.


def ref : Ref #

The Node::Ref used when creating this node.


[View source]
def source : Ref | Nil #

Ref of the upstream signal source currently feeding this node.


[View source]
def source=(source : Ref | Nil) #

Ref of the upstream signal source currently feeding this node.


def to_s(io) #

[View source]