Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.alicebot.server.core
Class Bot  view Bot download Bot.java

java.lang.Object
  extended byorg.alicebot.server.core.Bot

public class Bot
extends java.lang.Object


Field Summary
protected  org.alicebot.server.core.util.XMLResourceSpec chatlogSpec
           
private static java.lang.String EMPTY_STRING
           
private  java.util.HashMap genderSubstitutions
           
private  java.lang.String id
           
private  java.util.HashMap inputSubstitutions
           
private  java.util.HashMap loadedFiles
           
private  java.util.HashMap person2Substitutions
           
private  java.util.HashMap personSubstitutions
           
protected  java.lang.String PREDICATE_EMPTY_DEFAULT
           
private  java.util.Map predicateCache
           
private  java.util.HashMap predicatesInfo
           
private  java.util.HashMap properties
           
private  java.util.ArrayList sentenceSplitters
           
 
Constructor Summary
Bot(java.lang.String s)
           
 
Method Summary
 void addGenderSubstitution(java.lang.String s, java.lang.String s1)
           
 void addInputSubstitution(java.lang.String s, java.lang.String s1)
           
 void addPerson2Substitution(java.lang.String s, java.lang.String s1)
           
 void addPersonSubstitution(java.lang.String s, java.lang.String s1)
           
 void addPredicateInfo(java.lang.String s, java.lang.String s1, boolean flag)
           
 void addSentenceSplitter(java.lang.String s)
           
private  void addSubstitution(java.util.HashMap hashmap, java.lang.String s, java.lang.String s1)
           
 void addToFilenameMap(java.lang.String s, org.alicebot.server.core.node.Nodemapper nodemapper)
           
 java.lang.String applyInputSubstitutions(java.lang.String s)
           
 org.alicebot.server.core.util.XMLResourceSpec getChatlogSpec()
           
 java.util.HashMap getGenderSubstitutionsMap()
           
 java.lang.String getID()
           
 java.util.HashMap getInputSubstitutionsMap()
           
 java.util.HashMap getLoadedFilesMap()
           
 java.util.HashMap getPerson2SubstitutionsMap()
           
 java.util.HashMap getPersonSubstitutionsMap()
           
 java.util.Map getPredicateCache()
           
 java.util.HashMap getPredicatesInfo()
           
 java.lang.String getPropertyValue(java.lang.String s)
           
 java.util.ArrayList getSentenceSplitters()
           
 java.util.Map predicatesFor(java.lang.String s)
           
 java.util.ArrayList sentenceSplit(java.lang.String s)
           
 void setPropertyValue(java.lang.String s, java.lang.String s1)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

private java.lang.String id

loadedFiles

private java.util.HashMap loadedFiles

properties

private java.util.HashMap properties

predicatesInfo

private java.util.HashMap predicatesInfo

inputSubstitutions

private java.util.HashMap inputSubstitutions

personSubstitutions

private java.util.HashMap personSubstitutions

person2Substitutions

private java.util.HashMap person2Substitutions

genderSubstitutions

private java.util.HashMap genderSubstitutions

sentenceSplitters

private java.util.ArrayList sentenceSplitters

predicateCache

private java.util.Map predicateCache

PREDICATE_EMPTY_DEFAULT

protected java.lang.String PREDICATE_EMPTY_DEFAULT

EMPTY_STRING

private static final java.lang.String EMPTY_STRING
See Also:
Constant Field Values

chatlogSpec

protected org.alicebot.server.core.util.XMLResourceSpec chatlogSpec
Constructor Detail

Bot

public Bot(java.lang.String s)
Method Detail

getID

public java.lang.String getID()

getLoadedFilesMap

public java.util.HashMap getLoadedFilesMap()

addToFilenameMap

public void addToFilenameMap(java.lang.String s,
                             org.alicebot.server.core.node.Nodemapper nodemapper)

getPropertyValue

public java.lang.String getPropertyValue(java.lang.String s)

setPropertyValue

public void setPropertyValue(java.lang.String s,
                             java.lang.String s1)

addPredicateInfo

public void addPredicateInfo(java.lang.String s,
                             java.lang.String s1,
                             boolean flag)

getPredicatesInfo

public java.util.HashMap getPredicatesInfo()

getPredicateCache

public java.util.Map getPredicateCache()

predicatesFor

public java.util.Map predicatesFor(java.lang.String s)

addInputSubstitution

public void addInputSubstitution(java.lang.String s,
                                 java.lang.String s1)

addGenderSubstitution

public void addGenderSubstitution(java.lang.String s,
                                  java.lang.String s1)

addPersonSubstitution

public void addPersonSubstitution(java.lang.String s,
                                  java.lang.String s1)

addPerson2Substitution

public void addPerson2Substitution(java.lang.String s,
                                   java.lang.String s1)

addSubstitution

private void addSubstitution(java.util.HashMap hashmap,
                             java.lang.String s,
                             java.lang.String s1)

addSentenceSplitter

public void addSentenceSplitter(java.lang.String s)

getInputSubstitutionsMap

public java.util.HashMap getInputSubstitutionsMap()

getGenderSubstitutionsMap

public java.util.HashMap getGenderSubstitutionsMap()

getPersonSubstitutionsMap

public java.util.HashMap getPersonSubstitutionsMap()

getPerson2SubstitutionsMap

public java.util.HashMap getPerson2SubstitutionsMap()

getSentenceSplitters

public java.util.ArrayList getSentenceSplitters()

sentenceSplit

public java.util.ArrayList sentenceSplit(java.lang.String s)

applyInputSubstitutions

public java.lang.String applyInputSubstitutions(java.lang.String s)

getChatlogSpec

public org.alicebot.server.core.util.XMLResourceSpec getChatlogSpec()