Class: Expressir::Model::Expressions::Interval

Inherits:
Expressir::Model::Expression show all
Defined in:
lib/expressir/model/expressions/interval.rb

Overview

Specified in ISO 10303-11:2004

  • section 12.2.4 Interval expressions

Constant Summary collapse

LESS_THAN =
:LESS_THAN
LESS_THAN_OR_EQUAL =
:LESS_THAN_OR_EQUAL

Instance Attribute Summary collapse

Attributes inherited from ModelElement

#parent

Instance Method Summary collapse

Methods inherited from ModelElement

#children, #children_by_id, #find, from_hash, model_attr_accessor, model_attrs, #path, #reset_children_by_id, #to_hash, #to_liquid, #to_s

Constructor Details

#initialize(options = {}) ⇒ Interval

Returns a new instance of Interval.

Parameters:

  • options (Hash) (defaults to: {})

Options Hash (options):

  • :low (Expression)
  • :operator1 (:LESS_THAN, :LESS_THAN_OR_EQUAL)
  • :item (Reference)
  • :operator2 (:LESS_THAN, :LESS_THAN_OR_EQUAL)
  • :high (Expression)


22
23
24
25
26
27
28
29
30
# File 'lib/expressir/model/expressions/interval.rb', line 22

def initialize(options = {})
  @low = options[:low]
  @operator1 = options[:operator1]
  @item = options[:item]
  @operator2 = options[:operator2]
  @high = options[:high]

  super
end

Instance Attribute Details

#highExpression

Returns:



14
# File 'lib/expressir/model/expressions/interval.rb', line 14

model_attr_accessor :high, "Expression"

#itemReference

Returns:



12
# File 'lib/expressir/model/expressions/interval.rb', line 12

model_attr_accessor :item, "Reference"

#lowExpression

Returns:



10
# File 'lib/expressir/model/expressions/interval.rb', line 10

model_attr_accessor :low, "Expression"

#operator1:LESS_THAN, :LESS_THAN_OR_EQUAL

Returns:

  • (:LESS_THAN, :LESS_THAN_OR_EQUAL)


11
# File 'lib/expressir/model/expressions/interval.rb', line 11

model_attr_accessor :operator1, ":LESS_THAN, :LESS_THAN_OR_EQUAL"

#operator2:LESS_THAN, :LESS_THAN_OR_EQUAL

Returns:

  • (:LESS_THAN, :LESS_THAN_OR_EQUAL)


13
# File 'lib/expressir/model/expressions/interval.rb', line 13

model_attr_accessor :operator2, ":LESS_THAN, :LESS_THAN_OR_EQUAL"