|
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||
java.lang.Objectsourceafis.simple.Person
public class Person
Collection of Fingerprints belonging to one person.
This class is primarily a way to group multiple Fingerprints belonging to one person.
This is very convenient feature when there are multiple fingerprints per person, because
it is possible to match two Persons directly instead of iterating over their Fingerprints.
Id property is provided as a simple means to bind Person objects to application-specific
information. If you need more flexibility, inherit from Person class and add
application-specific fields as necessary.
This class is designed to be easy to serialize in order to be stored in binary format (BLOB)
in application database, binary or XML files, or sent over network. You can either serialize
the whole Person or serialize individual Fingerprints.
Fingerprint| Constructor Summary | |
|---|---|
Person()
Creates an empty Person object. |
|
Person(Fingerprint... fingerprints)
Creates new Person object and initializes it with a list of
Fingerprints. |
|
| Method Summary | |
|---|---|
Person |
clone()
Creates deep copy of the Person. |
List<Fingerprint> |
getFingerprints()
Gets list of Fingerprints belonging to the Person. |
int |
getId()
Gets application-defined ID for the Person. |
void |
setFingerprints(List<Fingerprint> fingerprints)
Sets list of Fingerprints belonging to the Person. |
void |
setId(int id)
Sets application-defined ID for the Person. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Person()
Person object.
public Person(Fingerprint... fingerprints)
Person object and initializes it with a list of
Fingerprints.
fingerprints - Fingerprint objects to add to the new Person| Method Detail |
|---|
public int getId()
setId for explanation. This method just returns
previously set ID.
setIdsetIdpublic void setId(int id)
Person.
SourceAFIS doesn't use this ID. It is provided for applications as an
easy means to link Person objects back to application-specific
data. Applications can store any integer ID in this field, for example
database table key or an array index.
Applications that need to attach more detailed information to the person
should inherit from Person class and add fields as necessary.
id - arbitrary application-defined IDgetIdpublic List<Fingerprint> getFingerprints()
Fingerprints belonging to the Person.
This collection is initially empty. Add Fingerprint objects
to the returned collection.
setFingerprints,
Fingerprintpublic void setFingerprints(List<Fingerprint> fingerprints)
Fingerprints belonging to the Person.
You can assign the whole collection using this method. Individual
Fingerprints can be added to the collection returned from
getFingerprints.
fingerprints - new list of Fingerprints for this PersongetFingerprints,
Fingerprintpublic Person clone()
Fingerprint objects contained in this
Person.
clone in class ObjectPerson
|
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||