Fido Alpha 3.2

fido.linguistic
Class Frame

java.lang.Object
  |
  +--fido.linguistic.Frame
All Implemented Interfaces:
java.lang.Cloneable

public class Frame
extends java.lang.Object
implements java.lang.Cloneable

The Frame class holds the transaction id the system will process, the mood of the current input, and a map of all noun object ids.

The system designer may use any name for the frame slot in the map. There are some common concepts at Frame Concepts.


Field Summary
static int COMMAND
          Value for setMood(int)
static int INFORMATION
          Value for setMood(int)
static int QUESTION
          Value for setMood(int)
 
Constructor Summary
Frame()
          Creates a new empty Frame instance.
 
Method Summary
 void clearFrame()
           
 java.lang.Object clone()
           
 int getFrameSlot(java.lang.String slot)
           
 int getMood()
           
 int getTransaction()
           
 java.util.Collection listFrameSlots()
           
 void setFrameSlot(java.lang.String slot, int value)
           
 void setMood(int mood)
           
 void setTransaction(int transaction)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMMAND

public static final int COMMAND
Value for setMood(int)

See Also:
Constant Field Values

QUESTION

public static final int QUESTION
Value for setMood(int)

See Also:
Constant Field Values

INFORMATION

public static final int INFORMATION
Value for setMood(int)

See Also:
Constant Field Values
Constructor Detail

Frame

public Frame()
Creates a new empty Frame instance.

Method Detail

clearFrame

public void clearFrame()

getTransaction

public int getTransaction()

setTransaction

public void setTransaction(int transaction)

getMood

public int getMood()

setMood

public void setMood(int mood)

listFrameSlots

public java.util.Collection listFrameSlots()

setFrameSlot

public void setFrameSlot(java.lang.String slot,
                         int value)

getFrameSlot

public int getFrameSlot(java.lang.String slot)

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

Fido Alpha 3.2