Ignore:
Timestamp:
Jun 18, 2009, 11:45:47 AM (15 years ago)
Author:
KOBAYASHI, Shinji
Message:

refs #50

File:
1 edited

Legend:

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

    r139 r140  
    4242              raise ArgumentError, "Other reference ranges validity error"
    4343            end
    44            
    4544            @other_reference_ranges = other_reference_ranges
    4645          end
     
    5655                         other_reference_ranges=nil)
    5756            super(normal_range, normal_status, other_reference_ranges)
    58            
    59            
    6057          end
    6158
     
    6562
    6663          def <=>(others)
    67             @symbol.
     64            @value <=> others.value
    6865          end
    6966
    7067          def valid_magnitude_status(s)
     68
    7169          end
    7270        end
    7371
    7472        class DV_Ordinal < DV_Ordered
    75           attr_reader :symbol, :value
     73          attr_reader :value, :symbol
     74          def initialize(value, symbol, normal_range=nil, normal_status = nil,
     75                         other_reference_ranges=nil)
     76          end
    7677
    7778          def is_strictly_comparable_to?
     79
    7880          end
    7981
    8082          def <=>(other)
    81               @symbol.
     83              @value <=> other.value
    8284          end
     85
    8386          def limits
     87
    8488          end
    8589        end
     
    103107        class DV_Amount < DV_Quantified
    104108          attr_reader :accuracy, :accuracy_is_percent
     109
    105110          def infix(dv_amount, op)
    106111            raise NotImplementError, 'infix must be implemented'
    107112          end
     113         
    108114          def accuracy=(accuracy)
    109115            raise ArgumentError, 'accuracy invalid'
    110116          end
     117        end
     118
     119        class DV_Quantity < DV_Amount
     120
    111121        end
    112122
     
    126136            return false
    127137          end
    128         end
     138        end # end of Proportion_Kind
    129139      end # of Quantity
    130140    end # of Data_Types
Note: See TracChangeset for help on using the changeset viewer.