Class: MARS::Rendering::Graph::Node

Inherits:
Object
  • Object
show all
Defined in:
lib/mars/rendering/graph/node.rb

Constant Summary collapse

STEP =
:step
OUTPUT =
:output
INPUT =
:input
GATE =
:gate

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id, name, type) ⇒ Node

Returns a new instance of Node.



14
15
16
17
18
# File 'lib/mars/rendering/graph/node.rb', line 14

def initialize(id, name, type)
  @id = id
  @name = name
  @type = type
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



12
13
14
# File 'lib/mars/rendering/graph/node.rb', line 12

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



12
13
14
# File 'lib/mars/rendering/graph/node.rb', line 12

def name
  @name
end

#typeObject (readonly)

Returns the value of attribute type.



12
13
14
# File 'lib/mars/rendering/graph/node.rb', line 12

def type
  @type
end