The AR Workbench: A Complete Co-located Reach-in Mirror-Based ...
The AR Workbench: A Complete Co-located Reach-in Mirror-Based ...
The AR Workbench: A Complete Co-located Reach-in Mirror-Based ...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Marlon Richert, Master’s <strong>The</strong>sis, Friday, 23 February, 2007<br />
class Sensor(__built<strong>in</strong>__.object)<br />
A non-empty, unordered, immutable collection of Pivots without duplicates<br />
56<br />
Methods def<strong>in</strong>ed here:<br />
__<strong>in</strong>it__(self, name, pivots)<br />
Creates a Sensor from the specified collection of Pivots. Each Pivot <strong>in</strong><br />
pivots is added only once; duplicates are ignored. pivots is not allowed to<br />
be empty.<br />
param name an alphanumeric str<strong>in</strong>g<br />
param pivots an iterable whose iterator returns Pivots; len(pivots) ><br />
0<br />
raises AttributeError if pivots's iterator does not return Pivots<br />
raises TypeError if pivots does not implement __len__(...)<br />
raises TypeError if pivots does not implement __iter__(...)<br />
raises TypeError if pivots conta<strong>in</strong>s items that are not Pivots<br />
raises ValueError if not name.isalnum()<br />
raises ValueError if len(pivots) < 1<br />
getName(self)<br />
Returns this Sensor's name.<br />
class Target(__built<strong>in</strong>__.object)<br />
An Obj wrapper that a Role can act upon.<br />
Methods def<strong>in</strong>ed here:<br />
__<strong>in</strong>it__(self, obj, regions)<br />
Creates a Target with the given Obj and collection of Regions.<br />
param obj an Obj<br />
param regions an iterable whose iterator returns Regions<br />
raises TypeError if regions conta<strong>in</strong>s an element that is not a Region<br />
getObj(self)<br />
Returns the Obj that this Target represents.<br />
regions(self)<br />
Returns a list of this Target's Regions