class Roby::OpenStructModel::Variable
Base implementation for “leaf” values in an extended struct model
Attributes
field[RW]
The parent field
name[RW]
The name of this leaf in its parent field
Public Class Methods
new(field = nil, name = nil)
click to toggle source
# File lib/roby/state/open_struct_model.rb, line 55 def initialize(field = nil, name = nil) @field, @name = field, name end
Public Instance Methods
path()
click to toggle source
Returns the full path of this leaf w.r.t. the root of the state structure
# File lib/roby/state/open_struct_model.rb, line 61 def path path = field.path.dup path << name path end