|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfiftyone.mobile.detection.entities.BaseEntity
fiftyone.mobile.detection.entities.Profile
public class Profile
Represents a collection of properties and values relating to a profile which in turn relates to a component.
Each Signature relates to one profile for each component.
| Field Summary | |
|---|---|
private Component |
component
|
private int |
componentIndex
|
private static int |
MIN_LENGTH
|
private SortedList<String,Values> |
nameToValues
|
int |
profileId
Unique Id of the profile. |
private Property[] |
properties
|
private static Comparator<Value> |
propertyComparator
Comparator used to order the properties by descending display order. |
private int[] |
signatureIndexes
|
private Signature[] |
signatures
|
private String |
stringValue
|
private int[] |
valueIndexes
A list of the indexes of the values associated with the profile. |
private Value[] |
values
|
| Constructor Summary | |
|---|---|
Profile(Dataset dataSet,
int offset,
BinaryReader reader)
Constructs a new instance of the Profile |
|
| Method Summary | |
|---|---|
int |
compareTo(Profile other)
Compares this profile to another using the numeric ProfileId field. |
Component |
getComponent()
The component the profile belongs to. |
int |
getLength()
|
Property[] |
getProperties()
An array of properties associated with the profile. |
private Property[] |
GetProperties()
Returns an array of properties the profile relates to. |
int[] |
getSignatureIndexes()
|
private Signature[] |
GetSignatures()
Returns an array of signatures the profile relates to. |
int[] |
getValueIndexes()
|
Value[] |
getValues()
An array of values associated with the profile. |
private Value[] |
GetValues()
Returns an array of values the profile relates to. |
Values |
getValues(Property property)
Gets the values associated with the property. |
Values |
getValues(String propertyName)
Gets the values associated with the property name. |
void |
init()
If storage of object references is enabled initialises the arrays of related properties and values. |
Signature[] |
Signatures()
Array of signatures associated with the profile. |
String |
toString()
A string representation of the profiles display values. |
| Methods inherited from class fiftyone.mobile.detection.entities.BaseEntity |
|---|
binarySearch, getDataSet, getIndex, readIntegerArray |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final Comparator<Value> propertyComparator
public final int profileId
private final int[] valueIndexes
private SortedList<String,Values> nameToValues
private Signature[] signatures
private final int[] signatureIndexes
private Component component
private final int componentIndex
private Value[] values
private Property[] properties
private String stringValue
private static final int MIN_LENGTH
| Constructor Detail |
|---|
public Profile(Dataset dataSet,
int offset,
BinaryReader reader)
dataSet - The data set the profile will be contained with inoffset - The offset of the profile in the source data structure| Method Detail |
|---|
public Values getValues(String propertyName)
throws IOException
propertyName - Name of the property whose values are required
IOException
public Values getValues(Property property)
throws IOException
property - The property whose values are required
IOException
public Signature[] Signatures()
throws IOException
IOException
public Component getComponent()
throws IOException
IOException
public Value[] getValues()
throws IOException
IOException
public Property[] getProperties()
throws IOException
IOException
public void init()
throws IOException
IOException
private Signature[] GetSignatures()
throws IOException
IOException
private Property[] GetProperties()
throws IOException
IOException
private Value[] GetValues()
throws IOException
IOExceptionpublic int compareTo(Profile other)
compareTo in interface Comparable<Profile>other - The component to be compared against
public String toString()
toString in class Objectpublic int[] getValueIndexes()
public int[] getSignatureIndexes()
public int getLength()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||