de.unihalle.informatik.MiToBo.tracking.multitarget.datatypes.impl
Class DataAssociationExclusive

java.lang.Object
  extended by de.unihalle.informatik.MiToBo.tracking.multitarget.datatypes.impl.DataAssociationExclusive
All Implemented Interfaces:
DataAssociation

@ALDMetaInfo(export=ALLOWED)
public class DataAssociationExclusive
extends Object
implements DataAssociation

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.

Author:
Oliver Gress

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

assocObs

protected HashMap<Integer,Integer> assocObs
Constructor Detail

DataAssociationExclusive

public DataAssociationExclusive()
Constructor

Method Detail

setAssociation

public void setAssociation(int target,
                           int observation)
Description copied from interface: DataAssociation
Set an association between target and observation.

Specified by:
setAssociation in interface DataAssociation

unsetAssociation

public void unsetAssociation(int target,
                             int observation)
Unsets the association of the specified observation and state.

Specified by:
unsetAssociation in interface DataAssociation

areAssociated

public boolean areAssociated(int target,
                             int observation)
Determine if target and observation are associated. If target == 0 and observation == 0, this method returns false

Specified by:
areAssociated in interface DataAssociation

numOfTargetAssocs

public int numOfTargetAssocs(int observation)
Description copied from interface: DataAssociation
Get the number of targets that are associated with the specified observation

Specified by:
numOfTargetAssocs in interface DataAssociation

numOfObservationAssocs

public int numOfObservationAssocs(int target)
Description copied from interface: DataAssociation
Get the number of observations that are associated with the specified target

Specified by:
numOfObservationAssocs in interface DataAssociation

getAssociatedTargets

public int[] getAssociatedTargets(int observation)
Description copied from interface: DataAssociation
Get the indices of all targets that are associated with the specified observation. May be null if no states are associated to that observation.

Specified by:
getAssociatedTargets in interface DataAssociation

getAssociatedObservations

public int[] getAssociatedObservations(int target)
Description copied from interface: DataAssociation
Get the indices of all observations that are associated with the specified state. May be null if no observations are associated to that state.

Specified by:
getAssociatedObservations in interface DataAssociation

equals

public boolean equals(Object o)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object

maxAssociatedTargetID

public int maxAssociatedTargetID()
Description copied from interface: DataAssociation
Get the maximum target id associated by this data association object

Specified by:
maxAssociatedTargetID in interface DataAssociation


Copyright © 2010–2015 Martin Luther University Halle-Wittenberg. All rights reserved.