public class OracleBasedReplayer<S,L,M>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.ArrayList<java.util.Map.Entry<S,java.lang.Integer>> |
currentStates |
protected gnu.trove.map.TObjectIntMap<? extends L> |
logMoveCost |
protected int |
maxQueueSize |
protected Oracle<S,L,M> |
oracle |
protected int |
scaling |
Constructor and Description |
---|
OracleBasedReplayer(Oracle<S,L,M> oracle,
int maxQueueSize,
gnu.trove.map.TObjectIntMap<? extends L> logMoveCost) |
Modifier and Type | Method and Description |
---|---|
protected void |
followEdge(java.util.Map<S,java.lang.Integer> newStates,
S fromState,
S toState,
MoveImpl<L,M> move,
int cost) |
protected void |
followEdge(java.util.Map<S,java.lang.Integer> newStates,
S fromState,
S toState,
MovementSequence<S,L,M> moves,
int cost) |
int |
getCostFor(L label) |
java.util.List<java.util.Map.Entry<S,java.lang.Integer>> |
getCurrentStates() |
int |
getScaling()
Like a regular replayer, the oracle uses a scaling parameter to ensure
progress in the alignments.
|
S |
peek() |
void |
setScaling(int scaling)
Like a regular replayer, the oracle uses a scaling parameter to ensure
progress in the alignments.
|
<K> java.util.ArrayList<java.util.Map.Entry<K,java.lang.Integer>> |
sortByValue(java.util.Map<K,java.lang.Integer> map) |
void |
update(L label)
Process an event labeled with L and update the internal list
|
protected java.util.ArrayList<java.util.Map.Entry<S,java.lang.Integer>> currentStates
protected final int maxQueueSize
protected final gnu.trove.map.TObjectIntMap<? extends L> logMoveCost
protected int scaling
public <K> java.util.ArrayList<java.util.Map.Entry<K,java.lang.Integer>> sortByValue(java.util.Map<K,java.lang.Integer> map)
public void update(L label)
label
- public int getCostFor(L label)
protected void followEdge(java.util.Map<S,java.lang.Integer> newStates, S fromState, S toState, MovementSequence<S,L,M> moves, int cost)
protected void followEdge(java.util.Map<S,java.lang.Integer> newStates, S fromState, S toState, MoveImpl<L,M> move, int cost)
public S peek()
public java.util.List<java.util.Map.Entry<S,java.lang.Integer>> getCurrentStates()
public int getScaling()
public void setScaling(int scaling)