sdr 0.21

net.cscott.sdr.calls
Class CallDB

java.lang.Object
  extended by net.cscott.sdr.calls.CallDB

public class CallDB
extends Object

CallDB holds all the calls and concepts we know about. It is a singleton class; its static constructor loads all the call definitions from files and other classes.

Author:
C. Scott Ananian

Field Summary
 Collection<Call> allCalls
           
static CallDB INSTANCE
           
 
Method Summary
 Call lookup(String name)
          Lookup a call in the database.
 Apply parse(Program program, String s)
          Parse a natural-language string of calls.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final CallDB INSTANCE

allCalls

public final Collection<Call> allCalls
Method Detail

lookup

public Call lookup(String name)
Lookup a call in the database.

Throws:
IllegalArgumentException - if the call name is unknown.

parse

public Apply parse(Program program,
                   String s)
Parse a natural-language string of calls.


sdr 0.21

Copyright (c) 2006 C. Scott Ananian