nineml.abstraction_layer.component.AnalogPort

class nineml.abstraction_layer.component.AnalogPort(name, mode='send', reduce_op=None)

AnalogPort

An AnalogPort represents a continuous input or output to/from a Component. For example, this could be the membrane-voltage into a synapse component, or the current provided by a ion-channel.

__init__(name, mode='send', reduce_op=None)

Port Constructor.

Parameters:
  • name – The name of the port, as a string
  • mode – The mode of the port, which should be a string as either, send,``recv`` or reduce.
  • reduce_op – This should be None unless the mode is reduce. If the mode is reduce, then this must be a supported reduce_op

Note

Currently support reduce_op s are: +.

Methods

__init__(name[, mode, reduce_op]) Port Constructor.
accept_visitor(visitor, **kwargs) link to something about visitation.
is_incoming() Returns True if the port’s mode is ‘recv’ or ‘reduce’
is_outgoing() Returns True if the port’s mode is ‘send’

Attributes

mode The mode of the port.
name The name of the port, local to the current component
reduce_op The reduce operation of the port, if it is a ‘reduce’ port
accept_visitor(visitor, **kwargs)

link to something about visitation.

is_incoming()

Returns True if the port’s mode is ‘recv’ or ‘reduce’

is_outgoing()

Returns True if the port’s mode is ‘send’

mode

The mode of the port. [‘send’,’recv’ or ‘reduce’]

name

The name of the port, local to the current component

reduce_op

The reduce operation of the port, if it is a ‘reduce’ port