Uses of Class
unsw.cse.framescript.Term

Uses of Term in unsw.cse.framescript
 

Subclasses of Term in unsw.cse.framescript
 class Alternatives
          This class implements alternatives in FrameScript
 class Atom
          Atoms are the most common term used in FrameScript.
 class Compound
          The class represents all function/subroutine references and calls.
 class Domain
          A domain is responsible for knowing the current state of a conversation.
 class Expr
          Class that represents functions that are written in FrameScript.
 class ExprList
          This class represents a series of expression that are evaluated in succession.
 class Frame
          This is an abstract class that provides the basic functionality inherent in all types of frames.
 class FSDouble
          This class provides FrameScript with real/decimal numbers.
 class FSInteger
          This class represents integers in FrameScript.
 class FSList
          This class is a simple linked list that provides sets/lists in FrameScript.
 class FSNumber
          This is the super class for all of the numerical types used is FrameScript.
 class FSString
          This class is used to give FrameScript its string data type.
 class Generic
          The class that implements generic frames in FrameScript.
 class Instance
          This class implements instance frames in FrameScript.
 class MobGeneric
          An extension of Generic that is used to turn Mica types into generic frames in FrameScript.
 class MobInstance
           
 class Pattern
          This class implements the Pattern type in FrameScript.
 class RDR
          This class implements the RDRs used in FrameScript.
 class Script
          This class provides FrameScript with rule based scripts.
 class Sequence
          This class implements sequences in FrameScript.
 class Subr
          Abstract class that provides the common code for all subroutines and FrameScript written functions.
 class Variable
          This class implements local variable in FrameScript.
 

Fields in unsw.cse.framescript declared as Term
 Term FSList.first
          The head of the list.
 

Methods in unsw.cse.framescript that return Term
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)
           
 Term MicaBotSerialiser.declareMobTypes(org.w3c.dom.Node n)
           
 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)
           
 Term Parser.expression()
          Reads an expression from the input.
 Term Parser.factor()
          Reads a factor(function call, list, pattern, number, atom, bracketed expression) from the input.
 Term FSList.get(long l)
          Gets the element at a given index in the list.
 Term Parser.getDaemon()
          Reads a daemon from the input.
static Term Utils.getName(Term t)
          Gets the name of a term if it has one.
 Term Script.getResponse(unsw.cse.framescript.InputPattern input)
          Gets the script's response to an input.
 Term Instance.getSlot(Atom slot)
          Gets the value of a slot for the instance.
 Term Script.getSlot(Atom slot)
           
static Term MobInstance.getSlotValue(java.lang.String val)
           
static Term Utils.getValue(Atom atom)
          Gets the value for an atom.
 Term XMLSerialiser.lookUpReference(long id)
          Looks up the term for a reference number.
 Term Compound.mapVars(FSList vars)
           
 Term ExprList.mapVars(FSList vars)
           
 Term Alternatives.mapVars(FSList vars)
           
 Term Sequence.mapVars(FSList vars)
           
 Term FSList.mapVars(FSList vars)
           
 Term RDR.mapVars(FSList vars)
           
 Term Term.mapVars(FSList vars)
          Maps atoms to variables from the list of variables.
 Term Pattern.mapVars(FSList vars)
           
 Term Atom.mapVars(FSList vars)
           
 Term Variable.mapVars(FSList vars)
           
 Term Atomiser.nextToken()
          Gets the next term from the input stream.
 Term MicaBotSerialiser.parseMobTypeNode(org.w3c.dom.Node n)
           
 Term MicaBotSerialiser.parseNode(org.w3c.dom.Node n)
           
 Term XMLSerialiser.parseNode(org.w3c.dom.Node n)
          Parses a FrameScript term from and XML node.
 Term XMLSerialiser.parseReferenceNode(org.w3c.dom.Node n)
          Parses an XML node for a referenced term.
 Term XMLSerialiser.parseValueNode(org.w3c.dom.Node n)
          Parses an XML node for a value term.
 Term Parser.patternElement()
          Reads a pattern element(atom, number, string, sequence, alternatives, ^, #) from the 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)
           
 Term Parser.statement()
          Reads a statement from the input.
 

Methods in unsw.cse.framescript with parameters of type Term
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.
 java.lang.String Atomiser.comment(Term t)
          Gets a comment associated with a term.
 boolean Compound.equals(Term t)
           
 boolean ExprList.equals(Term t)
           
 boolean Subr.equals(Term t)
           
 boolean Alternatives.equals(Term t)
           
 boolean Sequence.equals(Term t)
           
 boolean FSList.equals(Term t)
           
 boolean Frame.equals(Term t)
           
 boolean RDR.equals(Term t)
           
abstract  boolean Term.equals(Term t)
          Compares two Terms for equality.
 boolean Pattern.equals(Term t)
           
 boolean Atom.equals(Term t)
           
 boolean Variable.equals(Term t)
           
 boolean FSNumber.equals(Term t)
           
 boolean Domain.equals(Term t)
           
 boolean FSString.equals(Term t)
           
static Term Utils.evaluteStatement(Term statement)
           
static java.lang.String Utils.getMessage(Term t)
          Turns a term into a string for displaying.
static java.lang.String MicaBot.getMobType(Term t)
           
static Term Utils.getName(Term t)
          Gets the name of a term if it has one.
 Atom Subr.getSlotName(Term arg, StackFrame frame)
          Helper function for getting the hard coded name of a slot from an argument.
 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 SyntaxError Parser.InvalidName(java.lang.String type, Term value)
          Throws an error with standardised message when the name of an object is invalid.
static boolean Utils.isPatternElement(Term t)
          Test if a Term is a pattern element that can be read in by a Parser.
static boolean Parser.isReservedAtom(Term t)
          Check whether an atom is reserved or not.
static boolean Utils.isUnaryPattern(Term t)
          Test if a Term is a Pattern with a single element.
 boolean FSList.member(Term t)
          Test to see if a term is a member of a list.
 boolean Atomiser.nextToken(Term expect)
          Checks if the next term matches another, if so it is consumed.
 void Atomiser.pushBack(Term t)
          Returns a term to the input stream.
 void XMLSerialiser.putReference(long id, Term t)
          Maps a reference number to its term.
 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, 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)
           
 java.lang.String XMLSerialiser.serialise(Term t, int indentLevel)
          Serialises a term to XML.
 java.lang.String MicaBotSerialiser.serialiseReferredTerm(Term t, long id, int indentLevel)
           
 java.lang.String XMLSerialiser.serialiseReferredTerm(Term t, long id, int indentLevel)
          Serialises a referenced term to XML.
 void MicaBot.setNoMoreAltsSuffix(Term suffix)
           
 void GUIBot.setNoMoreAltsSuffix(Term suffix)
           
 void Conversation.setNoMoreAltsSuffix(Term suffix)
          Sets a string that will be returned with the NOMORESALTS response.
 void Atomiser.skip(Term expect)
          Skips to the designated term.
 FSList FSList.without(Term t)
          Removes a term from a list.
 

Constructors in unsw.cse.framescript with parameters of type Term
Compound(Atom functor, Term arg1)
          Creates a Compound with 1 argument.
Compound(Atom functor, Term arg1, Term arg2)
          Creates a Compound with 2 arguements.
Expr(Compound spec, Term expr)
          Creates a function from a specification and body.
ExprList(Term t)
          Creates a sequence with one expression.
ExprList(Term t, ExprList l)
          Creates an expression list where a given expression is followed by a list of expressions.
FSList(Term t)
          Creates a list with one term.
FSList(Term t, FSList l)
          Creates a list where t is its head and l is its tail.
Pattern(Term t)
          Creates a pattern with one element.
Pattern(Term t, Pattern p)
          Creates a pattern where a term a placed at the head of another pattern.
RDR(Term cond, Term conc)
          Creates an RDR with a condition and conclusion.