Uses of Class
unsw.cse.framescript.FSException

Uses of FSException in unsw.cse.framescript
 

Subclasses of FSException in unsw.cse.framescript
 class FSIOException
          A subclass of FSException for wrapping around IOExceptions.
 class FSMicaException
          An subclass of FSException used for wrapping MicaExceptions when using MicaBot.
 class StringNotClosedException
           
 class SyntaxError
          An exception throw when a syntax error is encountered while parsing FrameScript code.
 

Methods in unsw.cse.framescript that return FSException
static FSException Utils.FileNotFound(java.lang.String funct, java.lang.String filename, java.io.FileNotFoundException e)
          Provides a standard mechanism for generating and throwing FSExceptions in response to an FileNotFoundException caught in a subroutine.
 FSException Subr.hardCodeSlotNames(Term found, StackFrame frame)
          Throws an error with standard message if a function expects a slot name to be hard coded in FrameScript but it isn't.
static FSException Utils.IOError(java.lang.String funct, java.lang.String filename, java.io.IOException e)
          Provides a standard mechanism for generating and throwing FSExceptions in response to an IOException caught in a subroutine.
 FSException Subr.noEnclosingInstance(StackFrame frame)
          Throws an error with standard message if a function expects an enclosing instance frame
static FSException Subr.notDefined(Atom functor, StackFrame frame)
          Method for throwing errors with a standard error message if a function has not been defined.
 FSException Subr.notForNArgs(int nArgs, StackFrame frame)
          Method for throwing an error with standard error message if a subroutine is not defined to handle a given number of arguments.
 FSException Subr.notImplemented(StackFrame frame)
          Throws an error if a subroutine is defined but not actually implemented.
 FSException FSException.setParentStackFrame(StackFrame frame)
          Sets the stackframe inheritence that caused the error to fire.
 

Methods in unsw.cse.framescript with parameters of type FSException
static void GUI.showFSException(FSException e, java.awt.Window window)
           
 

Methods in unsw.cse.framescript that throw FSException
 void Generic.addParent(Generic parent)
          Adds a parent to the frame.
 void Instance.addParent(Generic parent)
          Adds a parent to the frame.
abstract  Term Subr.apply(Instance currentObject, Term[] args, StackFrame frame)
          This is the method that needs to be implemented for each subroutine.
 Term Expr.apply(Instance currentObject, Term[] args, StackFrame stackframe)
           
 Term Atom.apply(Instance currentObject, Term[] args, StackFrame frame)
          Used to lookup the subroutine/function defined with the name.
 Term Compound.assign(Instance currentObject, Term arg, StackFrame frame)
           
 Term FSList.assign(Instance currentObject, Term arg, StackFrame stackframe)
           
 Term Term.assign(Instance currentObject, Term arg, StackFrame frame)
          Assigns a value to a Term.
 Term Atom.assign(Instance currentObject, Term arg, StackFrame stackframe)
           
 Term Variable.assign(Instance currentObject, Term arg, StackFrame stackframe)
           
protected  Alternatives Subr.check_alternatives(Instance currentObject, Term[] args, int n, StackFrame frame)
          Convenience routine to check alternatives arguments for built-in functions.
static Alternatives Utils.check_alternatives(java.lang.String functionName, Instance currentObject, Term[] arg, int n, StackFrame frame)
          Convenience routine to check alternatives arguments for built-in functions.
protected  Atom Subr.check_atom(Instance currentObject, Term[] args, int n, StackFrame frame)
          Convenience routine to check atom arguments for built-in functions.
static Atom Utils.check_atom(java.lang.String functionName, Instance currentObject, Term[] arg, int n, StackFrame frame)
          Convenience routine to check atom arguments for built-in functions.
protected  Atom Subr.check_boolean(Instance currentObject, Term[] args, int n, StackFrame frame)
          Convenience routine to check boolean arguments for built-in functions.
static Atom Utils.check_boolean(java.lang.String functionName, Instance currentObject, Term[] arg, int n, StackFrame frame)
          Convenience routine to check boolean arguments for built-in functions.
protected  Compound Subr.check_compound(Instance currentObject, Term[] args, int n, StackFrame frame)
          Convenience routine to check compound arguments for built-in functions.
static Compound Utils.check_compound(java.lang.String functionName, Instance currentObject, Term[] arg, int n, StackFrame frame)
          Convenience routine to check compound arguments for built-in functions.
protected  Domain Subr.check_domain(Instance currentObject, Term[] args, int n, StackFrame frame)
          Convenience routine to check domain arguments for built-in functions.
static Domain Utils.check_domain(java.lang.String functionName, Instance currentObject, Term[] arg, int n, StackFrame frame)
          Convenience routine to check domain arguments for built-in functions.
protected  ExprList Subr.check_exprlist(Instance currentObject, Term[] args, int n, StackFrame frame)
          Convenience routine to check expression list arguments for built-in functions.
static ExprList Utils.check_exprlist(java.lang.String functionName, Instance currentObject, Term[] arg, int n, StackFrame frame)
          Convenience routine to check expression list arguments for built-in functions.
protected  Frame Subr.check_frame(Instance currentObject, Term[] args, int n, StackFrame frame)
          Convenience routine to check frame arguments for built-in functions.
static Frame Utils.check_frame(java.lang.String functionName, Instance currentObject, Term[] arg, int n, StackFrame frame)
          Convenience routine to check frame arguments for built-in functions.
protected  Generic Subr.check_generic(Instance currentObject, Term[] args, int n, StackFrame frame)
          Convenience routine to check generic frame arguments for built-in functions.
static Generic Utils.check_generic(java.lang.String functionName, Instance currentObject, Term[] arg, int n, StackFrame frame)
          Convenience routine to check generic frame arguments for built-in functions.
protected  Instance Subr.check_instance(Instance currentObject, Term[] args, int n, StackFrame frame)
          Convenience routine to check instance frame arguments for built-in functions.
static Instance Utils.check_instance(java.lang.String functionName, Instance currentObject, Term[] arg, int n, StackFrame frame)
          Convenience routine to check instance frame arguments for built-in functions.
protected  FSInteger Subr.check_integer(Instance currentObject, Term[] args, int n, StackFrame frame)
          Convenience routine to check integer arguments for built-in functions.
static FSInteger Utils.check_integer(java.lang.String functionName, Instance currentObject, Term[] arg, int n, StackFrame frame)
          Convenience routine to check integer arguments for built-in functions.
protected  FSList Subr.check_list(Instance currentObject, Term[] args, int n, StackFrame frame)
          Convenience routine to check list arguments for built-in functions.
static FSList Utils.check_list(java.lang.String functionName, Instance currentObject, Term[] arg, int n, StackFrame frame)
          Convenience routine to check list arguments for built-in functions.
static MicaBot MicaBot.check_micabot(Atom functionName, Instance currentObject, Term[] arg, int n, StackFrame frame)
          Convenience routine to check micabot arguments for built-in functions.
static Instance MicaBot.check_mob(Atom functionName, Instance currentObject, Term[] arg, int n, StackFrame frame)
          Convenience routine to check mob arguments for built-in functions.
protected  FSNumber Subr.check_number(Instance currentObject, Term[] args, int n, StackFrame frame)
          Convenience routine to check numerical arguments for built-in functions.
static FSNumber Utils.check_number(java.lang.String functionName, Instance currentObject, Term[] arg, int n, StackFrame frame)
          Convenience routine to check numerical arguments for built-in functions.
protected  Pattern Subr.check_pattern(Instance currentObject, Term[] args, int n, StackFrame frame)
          Convenience routine to check pattern arguments for built-in functions.
static Pattern Utils.check_pattern(java.lang.String functionName, Instance currentObject, Term[] arg, int n, StackFrame frame)
          Convenience routine to check pattern arguments for built-in functions.
protected  RDR Subr.check_rdr(Instance currentObject, Term[] args, int n, StackFrame frame)
          Convenience routine to check RDR arguments for built-in functions.
static RDR Utils.check_rdr(java.lang.String functionName, Instance currentObject, Term[] arg, int n, StackFrame frame)
          Convenience routine to check rdr arguments for built-in functions.
protected  Script Subr.check_script(Instance currentObject, Term[] args, int n, StackFrame frame)
          Convenience routine to check script arguments for built-in functions.
static Script Utils.check_script(java.lang.String functionName, Instance currentObject, Term[] arg, int n, StackFrame frame)
          Convenience routine to check script arguments for built-in functions.
protected  Sequence Subr.check_sequence(Instance currentObject, Term[] args, int n, StackFrame frame)
          Convenience routine to check sequence arguments for built-in functions.
static Sequence Utils.check_sequence(java.lang.String functionName, Instance currentObject, Term[] arg, int n, StackFrame frame)
          Convenience routine to check sequence arguments for built-in functions.
protected  FSString Subr.check_string(Instance currentObject, Term[] args, int n, StackFrame frame)
          Convenience routine to check string arguments for built-in functions.
static FSString Utils.check_string(java.lang.String functionName, Instance currentObject, Term[] arg, int n, StackFrame frame)
          Convenience routine to check string arguments for built-in functions.
 FSNumber FSInteger.divide(FSNumber n)
           
 FSNumber FSDouble.divide(FSNumber n)
           
abstract  FSNumber FSNumber.divide(FSNumber n)
          Divides two numbers.
 Term Compound.eval(Instance currentObject, StackFrame frame)
          Evalutes the function call.
 Term ExprList.eval(Instance currentObject, StackFrame stackframe)
          Evaluates all of the expressions in the list and returns the result of evaluating the last element.
 Term Subr.eval(Instance currentObject, StackFrame stackframe)
           
 Term Alternatives.eval(Instance currentObject, StackFrame stackframe)
          Evaluates the Alternates.
 Term Sequence.eval(Instance currentObject, StackFrame stackframe)
           
 Term FSList.eval(Instance currentObject, StackFrame stackframe)
           
 Term Frame.eval(Instance currentObject, StackFrame stackframe)
           
 Term RDR.eval(Instance currentObject, StackFrame stackframe)
           
abstract  Term Term.eval(Instance currentObject, StackFrame frame)
          Evaluates a Term.
 Term Pattern.eval(Instance currentObject, StackFrame frame)
           
 Term Atom.eval(Instance currentObject, StackFrame stackframe)
          Gets an atom's value.
 Term Variable.eval(Instance currentObject, StackFrame stackframe)
           
 Term FSNumber.eval(Instance currentObject, StackFrame stackframe)
           
 Term Domain.eval(Instance currentObject, StackFrame stackframe)
           
 Term FSString.eval(Instance currentObject, StackFrame stackframe)
           
static Term Utils.evaluteStatement(Term statement)
           
static FSException Utils.FileNotFound(java.lang.String funct, java.lang.String filename, java.io.FileNotFoundException e)
          Provides a standard mechanism for generating and throwing FSExceptions in response to an FileNotFoundException caught in a subroutine.
 boolean MobGeneric.fullMatch(unsw.cse.framescript.InputPattern input, Instance current, StackFrame frame)
           
 boolean Generic.fullMatch(unsw.cse.framescript.InputPattern input, Instance current, StackFrame frame)
           
 boolean Compound.fullMatch(unsw.cse.framescript.InputPattern input, Instance current, StackFrame frame)
           
 boolean Alternatives.fullMatch(unsw.cse.framescript.InputPattern input, Instance current, StackFrame frame)
           
 boolean Sequence.fullMatch(unsw.cse.framescript.InputPattern input, Instance current, StackFrame frame)
           
 boolean Term.fullMatch(unsw.cse.framescript.InputPattern input, Instance current, StackFrame frame)
          Matches the Term to the current position in an input pattern.
 boolean Pattern.fullMatch(unsw.cse.framescript.InputPattern input, Instance current, StackFrame frame)
           
 boolean Script.fullMatch(unsw.cse.framescript.InputPattern input, Instance current, StackFrame frame)
           
 Term FSList.get(long l)
          Gets the element at a given index in the list.
protected  Domain Subr.getCurrentDomain(StackFrame frame)
          Method for subroutines to get the current domain.
static MicaBot MicaBot.getCurrentMicaBot(Atom functor)
           
 Term Script.getResponse(unsw.cse.framescript.InputPattern input)
          Gets the script's response to an input.
 Pattern MicaBot.getResponse(Pattern input)
          Asks the MicaBot to process a given pattern.
 Pattern Domain.getResponse(Pattern input)
          Gets the response from the domain for a given user input.
 java.lang.String MicaBot.getResponse(java.lang.String input)
          Asks the MicaBot to get a response to an input string.
 java.lang.String MicaBot.getResponse(java.lang.String input, java.lang.String[] alternatives)
          Asks the MicaBot to get a response to an input string.
 Term Instance.getSlot(Atom slot)
          Gets the value of a slot for the instance.
 Term Script.getSlot(Atom slot)
           
 Atom Subr.getSlotName(Term arg, StackFrame frame)
          Helper function for getting the hard coded name of a slot from an argument.
 void Domain.gotoScript(Script script)
          Changes the current context to the given script.
 void Domain.gotoTopic(Script topic)
          Changes the topic to the given script and changes the current context.
 FSException Subr.hardCodeSlotNames(Term found, StackFrame frame)
          Throws an error with standard message if a function expects a slot name to be hard coded in FrameScript but it isn't.
static void GUI.init()
           
static void FSList.init()
          Initialises list manipulation subroutines.
static void FrameScript.init()
          Initialises FrameScript.
static void MicaBot.init(MicaBot bot)
           
 void Frame.initFrame()
          Initialises the frame.
 void Instance.initFrame()
           
static FSException Utils.IOError(java.lang.String funct, java.lang.String filename, java.io.IOException e)
          Provides a standard mechanism for generating and throwing FSExceptions in response to an IOException caught in a subroutine.
static void Utils.loadFile(java.io.File file)
          Reads and evaluates FrameScript code from a file.
static void Utils.loadFile(java.lang.String fname)
          Reads and evaluates FrameScript code from a file.
static void Utils.loadFile(java.net.URL file)
          Reads FrameScript code from a file retrieved from a given URL.
static void Utils.loadModule(java.net.URL classpath, java.lang.String module)
          Loads a FrameScript module into memory.
static void MicaBot.main(java.lang.String[] args)
           
static void FrameScript.main(java.lang.String[] args)
          The main method for FrameScript.
 boolean MobGeneric.match(unsw.cse.framescript.InputPattern input, Instance current, StackFrame frame)
           
 boolean Generic.match(unsw.cse.framescript.InputPattern input, Instance current, StackFrame frame)
           
 boolean Compound.match(unsw.cse.framescript.InputPattern input, Instance current, StackFrame frame)
           
 boolean Alternatives.match(unsw.cse.framescript.InputPattern input, Instance current, StackFrame frame)
           
 boolean Sequence.match(unsw.cse.framescript.InputPattern input, Instance current, StackFrame frame)
           
 boolean Term.match(unsw.cse.framescript.InputPattern input, Instance current, StackFrame frame)
          Matches the Term to the current position in an input pattern.
 boolean Pattern.match(unsw.cse.framescript.InputPattern input, Instance current, StackFrame frame)
           
 boolean Atom.match(unsw.cse.framescript.InputPattern input, Instance current, StackFrame frame)
           
 boolean Script.match(unsw.cse.framescript.InputPattern input, Instance current, StackFrame frame)
           
 FSNumber FSInteger.mod(FSNumber n)
           
 FSNumber FSDouble.mod(FSNumber n)
           
abstract  FSNumber FSNumber.mod(FSNumber n)
          Gets the modular of two numbers.
 FSException Subr.noEnclosingInstance(StackFrame frame)
          Throws an error with standard message if a function expects an enclosing instance frame
static FSException Subr.notDefined(Atom functor, StackFrame frame)
          Method for throwing errors with a standard error message if a function has not been defined.
 FSException Subr.notForNArgs(int nArgs, StackFrame frame)
          Method for throwing an error with standard error message if a subroutine is not defined to handle a given number of arguments.
 FSException Subr.notImplemented(StackFrame frame)
          Throws an error if a subroutine is defined but not actually implemented.
static void FixRDRGUI.open(Atom slotname, Instance currentInstance)
           
 void MicaBot.processInput(Pattern input)
           
 void GUIBot.processInput(Pattern input)
           
 void Conversation.processInput(Pattern input)
          Tells the conversation to treat a pattern as user input.
 void MicaBot.processInput(java.lang.String input)
           
 void GUIBot.processInput(java.lang.String input)
           
 void Conversation.processInput(java.lang.String input)
          Tells the conversation to treat a string as user input.
 void MicaBot.processInput(java.lang.String input, java.lang.String[] alternatives)
           
 void GUIBot.processInput(java.lang.String input, java.lang.String[] alternatives)
           
 void Conversation.processInput(java.lang.String input, java.lang.String[] alternatives)
          Tells the conversation to treat a string as user input.
 Term Instance.putSlot(Atom slot, Term value)
          Puts a value into a slot in an instance frame.
 Term Script.putSlot(Atom slot, Term value)
           
 Term Instance.removeSlot(Atom slot)
          Removes a slot from the instance frame.
 Term Script.removeSlot(Atom slot)
           
 Term Instance.removeSlot(Atom slot, Term value)
          Removes a specific value from a slot in an instance frame.
 Term Script.removeSlot(Atom slot, Term value)
           
 Term Instance.replaceSlot(Atom slot, Term value)
          Replaces the value of a slot.
 Term Script.replaceSlot(Atom slot, Term value)
           
 FSException FSException.setParentStackFrame(StackFrame frame)
          Sets the stackframe inheritence that caused the error to fire.
 Term Parser.statement()
          Reads a statement from the input.
 

Constructors in unsw.cse.framescript that throw FSException
Expr(Compound spec, Term expr)
          Creates a function from a specification and body.
Subr(java.lang.String str, int nArgs)
          Creates a subroutine for a specific number of arguments.