-
- All Implemented Interfaces:
-
java.beans.PropertyChangeListener,java.util.EventListener
public class DefaultNominator implements PropertyChangeListener
Implements ice4j internal nomination strategies.
-
-
Field Summary
Fields Modifier and Type Field Description private NominationStrategystrategy
-
Constructor Summary
Constructors Constructor Description DefaultNominator(Agent parentAgent)Creates a new instance of this nominator using parentAgent as a reference to the Agent instance that we should use to nominate pairs.
-
Method Summary
Modifier and Type Method Description NominationStrategygetStrategy()The NominationStrategy that this nominator is using when deciding whether or not a valid CandidatePair is suitable for nomination. voidsetStrategy(NominationStrategy strategy)The NominationStrategy that this nominator should use when deciding whether or not a valid CandidatePair is suitable for nomination. voidpropertyChange(PropertyChangeEvent ev)Tracks changes of state in IceMediaStreams and s. -
-
Method Detail
-
getStrategy
NominationStrategy getStrategy()
The NominationStrategy that this nominator is using when deciding whether or not a valid CandidatePair is suitable for nomination.
-
setStrategy
void setStrategy(NominationStrategy strategy)
The NominationStrategy that this nominator should use when deciding whether or not a valid CandidatePair is suitable for nomination.
- Parameters:
strategy- the NominationStrategy we should be using.
-
propertyChange
void propertyChange(PropertyChangeEvent ev)
Tracks changes of state in IceMediaStreams and s.
- Parameters:
ev- the event that we should use in case it means we should nominate someone.
-
-
-
-