Package netconv :: Module network :: Class Node
[show private | hide private]
[frames | no frames]

Class Node


Defines a Node and its properties
Method Summary
  __init__(self, name, id, x, y, z)
  __getitem__(self, attr)
Return attribute value
  __setitem__(self, attr, value)
Set attribute's value
  getAttribute(self, attr, attribs)
Return generic attribute for the node
  getCluster(self)
Return cluster to which the node belongs
  getExpression(self, attr)
Get expression value
  getExpressionAttributes(self)
Return all the expression attributes stored
  getGraphAttribute(self, attr)
Return graphic attribute of the node
  getName(self)
Return name (canonical) of the node
  getX(self)
Return position X of the node
  getXYZ(self)
Return list with the node position
  getY(self)
Return position Y of the node
  getZ(self)
Return position Z of the node
  setAttribute(self, attr, value, attribs)
Defines generic attribute for the node
  setCluster(self, cluster)
Defines cluster to which the node belongs
  setExpression(self, attr, value)
Set expression value
  setGraphAttribute(self, attr, value)
Defines graphic attribute for the node
  setName(self, name)
  setX(self, x)
  setY(self, y)
  setZ(self, z)

Method Details

__init__(self, name=None, id=None, x=None, y=None, z=None)
(Constructor)

Parameters:
name - canonical name of node
x - pos x
y - pos y
z - pos z

__getitem__(self, attr)
(Indexing operator)

Returns:
attribute value

__setitem__(self, attr, value)
(Index assignment operator)

Set attribute's value
Parameters:
attr - attribute
value - new value

getAttribute(self, attr, attribs=None)

Parameters:
attr - attribute to be read
attribs - dict of attributes
Returns:
generic attribute for the node

getCluster(self)

Returns:
cluster to which the node belongs

getExpression(self, attr)

Get expression value
Parameters:
attr - attribute to be taken (signal, p-value, etc...)

getExpressionAttributes(self)

Returns:
all the expression attributes stored

getGraphAttribute(self, attr)

Returns:
graphic attribute of the node

getName(self)

Returns:
name (canonical) of the node

getX(self)

Returns:
position X of the node

getXYZ(self)

Returns:
list with the node position

getY(self)

Returns:
position Y of the node

getZ(self)

Returns:
position Z of the node

setAttribute(self, attr, value, attribs=None)

Defines generic attribute for the node
Parameters:
attr - attribute to be set (can be a tuple)
value - value of attribute
attribs - dict of attributes

setCluster(self, cluster)

Defines cluster to which the node belongs
Parameters:
cluster - number of cluster

setExpression(self, attr, value)

Set expression value
Parameters:
attr - attribute to be set (signal, p-value, etc...)

setGraphAttribute(self, attr, value)

Defines graphic attribute for the node
Parameters:
attr - attribute to be set
value - value of attribute

setName(self, name)

Parameters:
name - name (canonical) of the node

setX(self, x)

Parameters:
x - position X of the node

setY(self, y)

Parameters:
y - position Y of the node

setZ(self, z)

Parameters:
z - position Z of the node

Generated by Epydoc 2.1 on Tue Aug 30 11:04:15 2005 http://epydoc.sf.net