|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.unihalle.informatik.MiToBo.tracking.multitarget.datatypes.impl.DataAssociationExclusive
@ALDMetaInfo(export=ALLOWED) public class DataAssociationExclusive
A class that represents exlusive data association. The idea here is that a target
can generate at most one observation. A target thus can be associated to at most one observation.
This data association type is based on an arrays of association labels (target indices), one for
each observation and one for each target respectively. Every target and observation is associated
with the label 0, meaning clutter for observations and undetected for targets.
The unsetAssociation
-method sets the association label of target and observation to 0.
Field Summary | |
---|---|
protected HashMap<Integer,Integer> |
assocObs
|
Constructor Summary | |
---|---|
DataAssociationExclusive()
Constructor |
Method Summary | |
---|---|
boolean |
areAssociated(int target,
int observation)
Determine if target and observation are associated. |
boolean |
equals(Object o)
|
int[] |
getAssociatedObservations(int target)
Get the indices of all observations that are associated with the specified state. |
int[] |
getAssociatedTargets(int observation)
Get the indices of all targets that are associated with the specified observation. |
int |
maxAssociatedTargetID()
Get the maximum target id associated by this data association object |
int |
numOfObservationAssocs(int target)
Get the number of observations that are associated with the specified target |
int |
numOfTargetAssocs(int observation)
Get the number of targets that are associated with the specified observation |
void |
setAssociation(int target,
int observation)
Set an association between target and observation. |
String |
toString()
|
void |
unsetAssociation(int target,
int observation)
Unsets the association of the specified observation and state. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected HashMap<Integer,Integer> assocObs
Constructor Detail |
---|
public DataAssociationExclusive()
Method Detail |
---|
public void setAssociation(int target, int observation)
DataAssociation
setAssociation
in interface DataAssociation
public void unsetAssociation(int target, int observation)
unsetAssociation
in interface DataAssociation
public boolean areAssociated(int target, int observation)
areAssociated
in interface DataAssociation
public int numOfTargetAssocs(int observation)
DataAssociation
numOfTargetAssocs
in interface DataAssociation
public int numOfObservationAssocs(int target)
DataAssociation
numOfObservationAssocs
in interface DataAssociation
public int[] getAssociatedTargets(int observation)
DataAssociation
getAssociatedTargets
in interface DataAssociation
public int[] getAssociatedObservations(int target)
DataAssociation
getAssociatedObservations
in interface DataAssociation
public boolean equals(Object o)
equals
in class Object
public String toString()
toString
in class Object
public int maxAssociatedTargetID()
DataAssociation
maxAssociatedTargetID
in interface DataAssociation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |