edu.berkeley.guir.papier_mache.barcode
Class BarcodePhob

java.lang.Object
  extended by edu.berkeley.guir.papier_mache.Phob
      extended by edu.berkeley.guir.papier_mache.TagPhob
          extended by edu.berkeley.guir.papier_mache.barcode.BarcodePhob
All Implemented Interfaces:
edu.berkeley.guir.lib.util.ToShortStringable

public class BarcodePhob
extends TagPhob

Author:
Ray Su ( raysu(AT)cal.berkeley.edu )

Field Summary
static int CYBERCODE
           
static int EAN
           
static int PDF417
           
 
Constructor Summary
BarcodePhob(java.lang.String tagID, PhobProducer source, int barcodeType)
           
BarcodePhob(java.lang.String tagID, PhobProducer source, VisionPhobCollection phobCollection, int barcodeType)
           
 
Method Summary
 boolean equals(java.lang.Object object)
           
 javax.swing.Icon getIcon()
           
 int getType()
           
 VisionPhobCollection getVisionPhobCollection()
           
 boolean isSimilar(java.lang.Object object, int barcodeType)
          Conducts a similarity test between the two BarcodePhobs.
 void setVisionPhobCollection(VisionPhobCollection coll)
           
 
Methods inherited from class edu.berkeley.guir.papier_mache.TagPhob
getTagID, hashCode, toShortString, toString
 
Methods inherited from class edu.berkeley.guir.papier_mache.Phob
getCreationTime, getSource
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

EAN

public static final int EAN
See Also:
Constant Field Values

PDF417

public static final int PDF417
See Also:
Constant Field Values

CYBERCODE

public static final int CYBERCODE
See Also:
Constant Field Values
Constructor Detail

BarcodePhob

public BarcodePhob(java.lang.String tagID,
                   PhobProducer source,
                   int barcodeType)

BarcodePhob

public BarcodePhob(java.lang.String tagID,
                   PhobProducer source,
                   VisionPhobCollection phobCollection,
                   int barcodeType)
Method Detail

getIcon

public javax.swing.Icon getIcon()
Overrides:
getIcon in class Phob

getType

public int getType()

getVisionPhobCollection

public VisionPhobCollection getVisionPhobCollection()

setVisionPhobCollection

public void setVisionPhobCollection(VisionPhobCollection coll)

equals

public boolean equals(java.lang.Object object)
Overrides:
equals in class TagPhob

isSimilar

public boolean isSimilar(java.lang.Object object,
                         int barcodeType)
Conducts a similarity test between the two BarcodePhobs. Conducts a different test based on the type of barcode

Parameters:
object -
barcodeType -
Returns:
true if the two BarcodePhobs are similar.