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

Quick Search    Search Deep

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

java.lang.Object
  extended byorg.alicebot.server.core.Multiplexor
Direct Known Subclasses:
DBMultiplexor, FlatFileMultiplexor

public abstract class Multiplexor
extends java.lang.Object


Field Summary
protected static java.lang.String ASTERISK
           
protected static float avgResponseTime
           
protected static java.lang.String EMPTY_STRING
           
protected static java.lang.String HOST_NAME
           
protected static java.lang.String INPUT
           
private static java.lang.String LABEL_FILENAME
           
private static java.lang.String LABEL_MATCH
           
private static java.lang.String MS
           
private static java.lang.String MS_AVERAGE
           
protected static java.lang.String PREDICATE_EMPTY_DEFAULT
           
private static Multiplexor proxy
           
private static java.util.ArrayList pulses
           
protected static java.lang.String QUOTE_MARK
           
private static java.lang.String RESPONSE_SPACE
           
protected static long responseCount
           
protected static java.lang.String SECRET_KEY
           
protected static boolean SHOW_CONSOLE
           
protected static boolean SHOW_MATCH_TRACE
           
protected static java.lang.String SPACE
           
private static java.lang.String SPACE_IN_SPACE
           
protected static java.lang.String STAR
           
protected static long startTime
           
private static int TARGET_SKIP
           
protected static java.lang.String THAT
           
protected static java.lang.String TOPIC
           
protected static long totalTime
           
protected static boolean USE_TARGETING
           
protected static java.lang.String VALUE
           
 
Constructor Summary
Multiplexor()
           
 
Method Summary
static void addPulse(org.alicebot.server.core.util.Pulse pulse1)
           
 float averageResponseTime()
           
abstract  boolean changePassword(java.lang.String s, java.lang.String s1, java.lang.String s2, java.lang.String s3)
           
abstract  boolean checkUser(java.lang.String s, java.lang.String s1, java.lang.String s2, java.lang.String s3)
           
abstract  boolean createUser(java.lang.String s, java.lang.String s1, java.lang.String s2, java.lang.String s3)
           
static java.lang.String getInternalResponse(java.lang.String s, java.lang.String s1, java.lang.String s2, org.alicebot.server.core.parser.TemplateParser templateparser)
           
private static java.lang.String getMatchResult(java.lang.String s, java.lang.String s1, java.lang.String s2, java.lang.String s3, java.lang.String s4, org.alicebot.server.core.parser.TemplateParser templateparser)
           
private static java.util.ArrayList getReplies(java.util.ArrayList arraylist, java.lang.String s, java.lang.String s1)
           
private static java.lang.String getReply(java.lang.String s, java.lang.String s1, java.lang.String s2, java.lang.String s3, java.lang.String s4)
           
static java.lang.String getResponse(java.lang.String s, java.lang.String s1, java.lang.String s2, org.alicebot.server.core.responder.Responder responder)
           
 void initialize()
           
abstract  java.lang.String loadPredicate(java.lang.String s, java.lang.String s1, java.lang.String s2)
           
static void pulse()
           
 float queriesPerHour()
           
abstract  void savePredicate(java.lang.String s, java.lang.String s1, java.lang.String s2, java.lang.String s3)
           
abstract  int useridCount(java.lang.String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

THAT

protected static final java.lang.String THAT
See Also:
Constant Field Values

TOPIC

protected static final java.lang.String TOPIC
See Also:
Constant Field Values

INPUT

protected static final java.lang.String INPUT
See Also:
Constant Field Values

STAR

protected static final java.lang.String STAR
See Also:
Constant Field Values

EMPTY_STRING

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

SPACE

protected static final java.lang.String SPACE
See Also:
Constant Field Values

VALUE

protected static final java.lang.String VALUE
See Also:
Constant Field Values

ASTERISK

protected static final java.lang.String ASTERISK
See Also:
Constant Field Values

QUOTE_MARK

protected static final java.lang.String QUOTE_MARK
See Also:
Constant Field Values

LABEL_MATCH

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

LABEL_FILENAME

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

RESPONSE_SPACE

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

SPACE_IN_SPACE

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

MS_AVERAGE

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

MS

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

HOST_NAME

protected static final java.lang.String HOST_NAME

SHOW_CONSOLE

protected static final boolean SHOW_CONSOLE

SHOW_MATCH_TRACE

protected static final boolean SHOW_MATCH_TRACE

USE_TARGETING

protected static final boolean USE_TARGETING

TARGET_SKIP

private static final int TARGET_SKIP

PREDICATE_EMPTY_DEFAULT

protected static final java.lang.String PREDICATE_EMPTY_DEFAULT

SECRET_KEY

protected static java.lang.String SECRET_KEY

startTime

protected static long startTime

responseCount

protected static long responseCount

totalTime

protected static long totalTime

avgResponseTime

protected static float avgResponseTime

proxy

private static Multiplexor proxy

pulses

private static java.util.ArrayList pulses
Constructor Detail

Multiplexor

public Multiplexor()
Method Detail

initialize

public void initialize()

getResponse

public static java.lang.String getResponse(java.lang.String s,
                                           java.lang.String s1,
                                           java.lang.String s2,
                                           org.alicebot.server.core.responder.Responder responder)

getInternalResponse

public static java.lang.String getInternalResponse(java.lang.String s,
                                                   java.lang.String s1,
                                                   java.lang.String s2,
                                                   org.alicebot.server.core.parser.TemplateParser templateparser)

getReplies

private static java.util.ArrayList getReplies(java.util.ArrayList arraylist,
                                              java.lang.String s,
                                              java.lang.String s1)

getReply

private static java.lang.String getReply(java.lang.String s,
                                         java.lang.String s1,
                                         java.lang.String s2,
                                         java.lang.String s3,
                                         java.lang.String s4)

getMatchResult

private static java.lang.String getMatchResult(java.lang.String s,
                                               java.lang.String s1,
                                               java.lang.String s2,
                                               java.lang.String s3,
                                               java.lang.String s4,
                                               org.alicebot.server.core.parser.TemplateParser templateparser)

averageResponseTime

public float averageResponseTime()

queriesPerHour

public float queriesPerHour()

addPulse

public static void addPulse(org.alicebot.server.core.util.Pulse pulse1)

pulse

public static void pulse()

savePredicate

public abstract void savePredicate(java.lang.String s,
                                   java.lang.String s1,
                                   java.lang.String s2,
                                   java.lang.String s3)

loadPredicate

public abstract java.lang.String loadPredicate(java.lang.String s,
                                               java.lang.String s1,
                                               java.lang.String s2)
                                        throws NoSuchPredicateException

checkUser

public abstract boolean checkUser(java.lang.String s,
                                  java.lang.String s1,
                                  java.lang.String s2,
                                  java.lang.String s3)

createUser

public abstract boolean createUser(java.lang.String s,
                                   java.lang.String s1,
                                   java.lang.String s2,
                                   java.lang.String s3)

changePassword

public abstract boolean changePassword(java.lang.String s,
                                       java.lang.String s1,
                                       java.lang.String s2,
                                       java.lang.String s3)

useridCount

public abstract int useridCount(java.lang.String s)