Exception: Syskit::AmbiguousPortMappings
- Defined in:
 - lib/syskit/exceptions.rb
 
Overview
Exception raised when port mappings cannot be computed because two source ports have the same name
Instance Attribute Summary collapse
- 
  
    
      #model_a  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute model_a.
 - 
  
    
      #model_b  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute model_b.
 - 
  
    
      #port_name  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute port_name.
 
Instance Method Summary collapse
- 
  
    
      #initialize(model_a, model_b, port_name)  ⇒ AmbiguousPortMappings 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of AmbiguousPortMappings.
 - #pretty_print(pp) ⇒ Object
 
Constructor Details
#initialize(model_a, model_b, port_name) ⇒ AmbiguousPortMappings
Returns a new instance of AmbiguousPortMappings
      846 847 848 849  | 
    
      # File 'lib/syskit/exceptions.rb', line 846 def initialize(model_a, model_b, port_name) @model_a, @model_b, @port_name = model_a, model_b, port_name end  | 
  
Instance Attribute Details
#model_a ⇒ Object (readonly)
Returns the value of attribute model_a
      843 844 845  | 
    
      # File 'lib/syskit/exceptions.rb', line 843 def model_a @model_a end  | 
  
#model_b ⇒ Object (readonly)
Returns the value of attribute model_b
      844 845 846  | 
    
      # File 'lib/syskit/exceptions.rb', line 844 def model_b @model_b end  | 
  
#port_name ⇒ Object (readonly)
Returns the value of attribute port_name
      845 846 847  | 
    
      # File 'lib/syskit/exceptions.rb', line 845 def port_name @port_name end  | 
  
Instance Method Details
#pretty_print(pp) ⇒ Object
      851 852 853  | 
    
      # File 'lib/syskit/exceptions.rb', line 851 def pretty_print(pp) pp.text "cannot compute port mappings: #{model_a.short_name} and #{model_b.short_name} share the same port name #{port_name}" end  |