Class: Expressir::Model::SupertypeExpressions::BinarySupertypeExpression

Inherits:
Expressir::Model::SupertypeExpression show all
Defined in:
lib/expressir/model/supertype_expressions/binary_supertype_expression.rb

Overview

Specified in ISO 10303-11:2004

  • section 9.2.5.3 ANDOR

  • section 9.2.5.4 AND

Constant Summary collapse

AND =
:AND
ANDOR =
:ANDOR

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 = {}) ⇒ BinarySupertypeExpression

Returns a new instance of BinarySupertypeExpression.

Parameters:

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

Options Hash (options):



19
20
21
22
23
24
25
# File 'lib/expressir/model/supertype_expressions/binary_supertype_expression.rb', line 19

def initialize(options = {})
  @operator = options[:operator]
  @operand1 = options[:operand1]
  @operand2 = options[:operand2]

  super
end

Instance Attribute Details

#operand1SupertypeExpression

Returns:



12
# File 'lib/expressir/model/supertype_expressions/binary_supertype_expression.rb', line 12

model_attr_accessor :operand1, "SupertypeExpression"

#operand2SupertypeExpression

Returns:



13
# File 'lib/expressir/model/supertype_expressions/binary_supertype_expression.rb', line 13

model_attr_accessor :operand2, "SupertypeExpression"

#operator:AND, :ANDOR

Returns:

  • (:AND, :ANDOR)


11
# File 'lib/expressir/model/supertype_expressions/binary_supertype_expression.rb', line 11

model_attr_accessor :operator, ":AND, :ANDOR"