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.
Port Constructor.
| Parameters: |
|
|---|
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 |
link to something about visitation.
Returns True if the port’s mode is ‘recv’ or ‘reduce’
Returns True if the port’s mode is ‘send’
The mode of the port. [‘send’,’recv’ or ‘reduce’]
The name of the port, local to the current component
The reduce operation of the port, if it is a ‘reduce’ port