Class: ODDB::Analysis::Group

Inherits:
Object
  • Object
show all
Includes:
Persistence
Defined in:
src/model/analysis/group.rb

Constant Summary

Constants included from Persistence

ODBA_PREDEFINE_SERIALIZABLE

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Methods included from PersistenceMethods

#checkout, #data_origin, #data_origins, #diff, #init, #nil_if_empty, #parent, #structural_ancestors, #undiffable?, #update_values

Constructor Details

- (Group) initialize(groupcd)

A new instance of Group



13
14
15
16
# File 'src/model/analysis/group.rb', line 13

def initialize(groupcd)
  @groupcd = groupcd
  @positions = {}
end

Instance Attribute Details

- (Object) groupcd (readonly) Also known as: pointer_descr

Returns the value of attribute groupcd



11
12
13
# File 'src/model/analysis/group.rb', line 11

def groupcd
  @groupcd
end

- (Object) positions (readonly)

Returns the value of attribute positions



11
12
13
# File 'src/model/analysis/group.rb', line 11

def positions
  @positions
end

Instance Method Details

- (Object) create_position(poscd)



17
18
19
20
21
# File 'src/model/analysis/group.rb', line 17

def create_position(poscd)
  position = Position.new(poscd)
  position.group = self
  @positions.store(poscd, position)
end

- (Object) position(poscd)



22
23
24
# File 'src/model/analysis/group.rb', line 22

def position(poscd)
  @positions[poscd]
end