Ignore:
Timestamp:
Jun 4, 2009, 9:32:55 PM (15 years ago)
Author:
KOBAYASHI, Shinji
Message:

refs #50
Quantity package is difficult to solve.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ruby/trunk/lib/models/rm/data_types/quantity.rb

    r124 r137  
    66    module Data_Types
    77      module Quantity
     8
     9        autoload :Date_Time, "rm/data_types/quantity/date_time.rb"
     10
    811        class DV_Ordered < OpenEHR::RM::Data_Types::Basic::Data_Value
    912          include Comparable
     
    5154          end
    5255
     56          def is_strictry_comparable_to?(other)
     57            raise NotImplementedError, 'this method should be implemented'
     58          end
    5359        end
    5460
    5561        class DV_Quantified < DV_Ordered
     62
     63          def initialize
     64           
     65          end
     66
    5667          def magnitude
     68           
    5769          end
     70
     71          def <=>(others)
     72           
     73          end
     74
    5875          def valid_magnitude_status(s)
    5976          end
     
    6279        class DV_Ordinal < DV_Ordered
    6380          attr_reader :symbol, :value
     81
    6482          def is_strictly_comparable_to?
    6583          end
     84
    6685          def limits
    6786          end
     
    97116         
    98117        end
    99 
    100         autoload :Date_Time, "rm/data_types/quantity/date_time.rb"
    101        
    102118      end # of Quantity
    103119    end # of Data_Types
Note: See TracChangeset for help on using the changeset viewer.