Class: ODDB::Interaction::Connection

Inherits:
Object
  • Object
show all
Defined in:
src/plugin/interaction.rb

Direct Known Subclasses

InducerConnection, InhibitorConnection, SubstrateConnection

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (Connection) initialize(name, lang)

A new instance of Connection



69
70
71
72
73
# File 'src/plugin/interaction.rb', line 69

def initialize(name, lang)
  @name = name
  @lang = lang
  @links = []
end

Instance Attribute Details

- (Object) auc_factor

Returns the value of attribute auc_factor



68
69
70
# File 'src/plugin/interaction.rb', line 68

def auc_factor
  @auc_factor
end

- (Object) category

Returns the value of attribute category



68
69
70
# File 'src/plugin/interaction.rb', line 68

def category
  @category
end

- (Object) lang (readonly)

Returns the value of attribute lang



67
68
69
# File 'src/plugin/interaction.rb', line 67

def lang
  @lang
end

Returns the value of attribute links



68
69
70
# File 'src/plugin/interaction.rb', line 68

def links
  @links
end

- (Object) name (readonly)

Returns the value of attribute name



67
68
69
# File 'src/plugin/interaction.rb', line 67

def name
  @name
end

Instance Method Details



74
75
76
# File 'src/plugin/interaction.rb', line 74

def add_link(abstractlink)
  @links.push(abstractlink)
end