|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object eu.semaine.system.CharacterConfigInfo
public class CharacterConfigInfo
This class is (intended to become) the single Java entry point for all configuration information needed to define the appearance and behaviour of the characters in the system. Everything a Java component needs to know about a Character should be defined here. The information is read from an XML config file; the filename must be given as property "semaine.character-config", in the java config file.
Method Summary | |
---|---|
static java.lang.Iterable<java.lang.String> |
getCharacterNames()
Get all character names for which chracter config info is available. |
static CharacterConfigInfo |
getDefaultCharacter()
|
float |
getEmotionalPredisposition(java.lang.String vocabularyURI,
java.lang.String dimension)
For the given emotion dimension, provide any predisposition that the character may have. |
java.util.List<java.lang.String[]> |
getEmotionalPredispositions()
Get a complete list of the emotional predispositions defined for this character. |
static CharacterConfigInfo |
getInfo(java.lang.String characterName)
The public entry point for getting access to character info by name. |
java.lang.String |
getName()
|
java.lang.String |
getSetting(java.lang.String name)
Generic mechanism for providing String-valued key-value pairs from the config file, using <setting name="..." value="..." |
java.util.Set<java.lang.String> |
getSettings()
Provide the list of all setting names which are defined for this character. |
java.lang.String |
getVoiceEffects()
|
java.util.Locale |
getVoiceLocale()
|
java.lang.String |
getVoiceLocaleString()
|
java.lang.String[] |
getVoices()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static CharacterConfigInfo getInfo(java.lang.String characterName)
characterName
- the character's name.
public static java.lang.Iterable<java.lang.String> getCharacterNames()
public static CharacterConfigInfo getDefaultCharacter()
public java.lang.String getName()
public java.lang.String[] getVoices()
public java.lang.String getVoiceLocaleString()
public java.util.Locale getVoiceLocale()
public java.lang.String getVoiceEffects()
public float getEmotionalPredisposition(java.lang.String vocabularyURI, java.lang.String dimension)
vocabularyURI
- the URI identifying the emotion dimension vocabulary being useddimension
- the name of an emotion dimension, which must be part of the given vocabulary
public java.util.List<java.lang.String[]> getEmotionalPredispositions()
getEmotionalPredisposition(String, String)
.public java.lang.String getSetting(java.lang.String name)
<setting name="..." value="..."/>
.
name
- the setting's name, which must match the name
attribute in the config file.
public java.util.Set<java.lang.String> getSettings()
getSetting(String)
.
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |