Module: AIXM::Feature::Obstacle::Grouped

Defined in:
lib/aixm/feature/obstacle.rb

Overview

Extensions used by ObstacleGroup feature

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#groupAIXM::Feature::ObstacleGroup

Returns group this obstacle belongs to

Returns:


255
256
257
# File 'lib/aixm/feature/obstacle.rb', line 255

def group
  @group
end

Returns type of link between two obstacles

Returns:

  • (Symbol)

    type of link between two obstacles


261
262
263
# File 'lib/aixm/feature/obstacle.rb', line 261

def link_type
  @link_type
end

#linked_toAIXM::Feature::Obstacle

Returns another obstacle this one is linked to

Returns:


258
259
260
# File 'lib/aixm/feature/obstacle.rb', line 258

def linked_to
  @linked_to
end

Instance Method Details

#linked?Boolean

Returns whether obstacle is linked to another one

Returns:

  • (Boolean)

    whether obstacle is linked to another one


270
271
272
# File 'lib/aixm/feature/obstacle.rb', line 270

def linked?
  !!linked_to
end