Package gavo :: Package stc :: Module dm :: Class _CoordinateLike
[hide private]
[frames] | no frames]

Class _CoordinateLike

source code

             object --+        
                      |        
utils.autonode.AutoNode --+    
                          |    
             common.ASTNode --+
                              |
                             _CoordinateLike
Known Subclasses:

An abstract base for everything that has a frame.

They can return a position object of the proper type and with the same unit as self.

When deriving from _CoordinateLike, you have at some point to define a cType class attribute that has values in the _CooTypeSentinels above.

Nested Classes [hide private]

Inherited from utils.autonode.AutoNode: __metaclass__

Instance Methods [hide private]
 
getPosition(self, initArgs=None)
returns a position appropriate for this class.
source code
 
__init__(self, frame=None, id=None, name=None, ucd=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code

Inherited from common.ASTNode: __eq__, __hash__, __ne__, ensureId

Inherited from utils.autonode.AutoNode: __repr__, change, iterAttributes, iterChildren, iterNodeChildren, iterNodes

Inherited from object: __delattr__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__

Class Methods [hide private]

Inherited from utils.autonode.AutoNode: cloneFrom

Class Variables [hide private]
  _a_frame = None
  _a_name = None
  _nodeAttrs = [('frame', None), ('id', None), ('name', None), (...

Inherited from common.ASTNode: inexactAttrs

Inherited from common.ASTNode (private): _a_id, _a_ucd

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

getPosition(self, initArgs=None)

source code 

returns a position appropriate for this class.

This is a shallow copy of the xCoo object itself for xCoos, xCoo for xInterval, and SpaceCoo for Geometries. Common attributes are copied to the new object.

__init__(self, frame=None, id=None, name=None, ucd=None)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

Class Variable Details [hide private]

_nodeAttrs

Value:
[('frame', None), ('id', None), ('name', None), ('ucd', None)]