public class ViterbiCandidate extends Object implements Comparable<ViterbiCandidate>
Constructor and Description |
---|
ViterbiCandidate(Target target,
Unit unit,
TargetCostFunction tcf) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ViterbiCandidate o)
Compare two candidates so that the one with the smaller target cost is considered smaller.
|
ViterbiPath |
getBestPath()
Gets the best path leading to this candidate
|
ViterbiCandidate |
getNext()
Gets the next candidate in the queue
|
Target |
getTarget()
Gets the target of this candidate
|
double |
getTargetCost()
Calculates and returns the target cost for this candidate
|
Unit |
getUnit()
Gets the index of this
|
void |
setBestPath(ViterbiPath bestPath)
Sets the currently best path leading to this candidate.
|
void |
setNext(ViterbiCandidate next)
Sets the next candidate in the queue
|
String |
toString()
Converts this object to a string.
|
public ViterbiCandidate(Target target, Unit unit, TargetCostFunction tcf)
public double getTargetCost()
public ViterbiCandidate getNext()
public void setNext(ViterbiCandidate next)
next
- the next candidatepublic Target getTarget()
public Unit getUnit()
public void setBestPath(ViterbiPath bestPath)
bestPath
- bestPathpublic ViterbiPath getBestPath()
public String toString()
public int compareTo(ViterbiCandidate o)
compareTo
in interface Comparable<ViterbiCandidate>
Copyright © 2000–2016 DFKI GmbH. All rights reserved.