Package com.jme3.bullet.control.ragdoll
Class RagdollPreset.LexiconEntry
- All Implemented Interfaces:
- Serializable,- Cloneable,- Map<String,- Integer> 
- Enclosing class:
- RagdollPreset
One entry in a bone lexicon.
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class java.util.AbstractMapAbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> 
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddSynonym(String word, int score) Add a synonym with the specified score.intCalculate a total score for the specified bone name.Methods inherited from class java.util.HashMapclear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class java.util.AbstractMapequals, hashCode, toString
- 
Constructor Details- 
LexiconEntryprotected LexiconEntry()
 
- 
- 
Method Details- 
addSynonymAdd a synonym with the specified score.- Parameters:
- word- a substring that might occur in a bone name (not null)
- score- larger value means more likely to correspond
 
- 
getScoreCalculate a total score for the specified bone name.- Parameters:
- word- the name of a bone (not null)
- Returns:
- total score: larger value means more likely to correspond
 
 
-