edu.berkeley.guir.papier_mache.vision
Class VisualAnalogueFactory

java.lang.Object
  extended by edu.berkeley.guir.papier_mache.assoc.DefaultAssociationFactory
      extended by edu.berkeley.guir.papier_mache.vision.VisualAnalogueFactory
All Implemented Interfaces:
AssociationFactory, edu.berkeley.guir.lib.util.ToShortStringable

public class VisualAnalogueFactory
extends DefaultAssociationFactory

Listens to vision events. Working as a vision listener, it builds and updates a visual representation of the physical world.

Author:
Scott Klemmer ( srk(AT)cs.berkeley.edu )

Constructor Summary
VisualAnalogueFactory(java.awt.Container container, java.lang.Class visualClass)
           
 
Method Summary
 AssociationElt createAssociationEltForPhob(Phob phob)
          Create an AssociationElt based on the given phob
 java.lang.String toShortString()
          Provides a short explanation of what this factory will create.
 
Methods inherited from class edu.berkeley.guir.papier_mache.assoc.DefaultAssociationFactory
setParameter, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VisualAnalogueFactory

public VisualAnalogueFactory(java.awt.Container container,
                             java.lang.Class visualClass)
Method Detail

createAssociationEltForPhob

public AssociationElt createAssociationEltForPhob(Phob phob)
Description copied from interface: AssociationFactory
Create an AssociationElt based on the given phob

Specified by:
createAssociationEltForPhob in interface AssociationFactory
Specified by:
createAssociationEltForPhob in class DefaultAssociationFactory
Parameters:
phob - used to decide what type of AssociationElt to create
Returns:
the created AssociatoinElt

toShortString

public java.lang.String toShortString()
Description copied from class: DefaultAssociationFactory
Provides a short explanation of what this factory will create. Should be overriden by subclasses.

Specified by:
toShortString in interface edu.berkeley.guir.lib.util.ToShortStringable
Overrides:
toShortString in class DefaultAssociationFactory