Fido Alpha 3.2

fido.db
Class InstructionTable

java.lang.Object
  |
  +--fido.db.InstructionTable

public class InstructionTable
extends java.lang.Object


Field Summary
static int COLLECTION
           
static int DECISION
           
static int EXECUTE_INTERNAL
           
 
Constructor Summary
InstructionTable()
           
 
Method Summary
 int addCollectionInstruction()
           
 int addDecisionInstruction(int condition, java.lang.String frameSlot, java.lang.String linkName, int objectId, java.lang.String attribute, int positive, int negative)
           
 int addExecuteInstruction(java.lang.String exeString)
           
 boolean contains(int id)
           
 void delete(int id)
           
 Instruction get(int id)
          Returns the GrammarLink type referrenced by the parameter id.
 int hashCode(int id)
           
 int hashCode(java.lang.String id)
           
 boolean isEmpty()
           
 java.util.Collection list()
          Returns the names of all GrammarLink names in the list.
 java.util.Collection listTypes()
          Returns the names of all Attribute names in the list.
 void modifyDecisionInstruction(int id, int condition, java.lang.String frameSlot, java.lang.String linkName, int objectId, java.lang.String attribute, int positive, int negative)
           
 void modifyExecuteInstruction(int id, java.lang.String exeString)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COLLECTION

public static final int COLLECTION
See Also:
Constant Field Values

DECISION

public static final int DECISION
See Also:
Constant Field Values

EXECUTE_INTERNAL

public static final int EXECUTE_INTERNAL
See Also:
Constant Field Values
Constructor Detail

InstructionTable

public InstructionTable()
Method Detail

addExecuteInstruction

public int addExecuteInstruction(java.lang.String exeString)
                          throws FidoDatabaseException
FidoDatabaseException

modifyExecuteInstruction

public void modifyExecuteInstruction(int id,
                                     java.lang.String exeString)
                              throws FidoDatabaseException
FidoDatabaseException

addDecisionInstruction

public int addDecisionInstruction(int condition,
                                  java.lang.String frameSlot,
                                  java.lang.String linkName,
                                  int objectId,
                                  java.lang.String attribute,
                                  int positive,
                                  int negative)
                           throws FidoDatabaseException,
                                  ObjectNotFoundException,
                                  InstructionNotFoundException
FidoDatabaseException
ObjectNotFoundException
InstructionNotFoundException

modifyDecisionInstruction

public void modifyDecisionInstruction(int id,
                                      int condition,
                                      java.lang.String frameSlot,
                                      java.lang.String linkName,
                                      int objectId,
                                      java.lang.String attribute,
                                      int positive,
                                      int negative)
                               throws FidoDatabaseException,
                                      ObjectNotFoundException,
                                      InstructionNotFoundException
FidoDatabaseException
ObjectNotFoundException
InstructionNotFoundException

addCollectionInstruction

public int addCollectionInstruction()
                             throws FidoDatabaseException
FidoDatabaseException

delete

public void delete(int id)
            throws FidoDatabaseException
FidoDatabaseException

contains

public boolean contains(int id)
                 throws FidoDatabaseException
FidoDatabaseException

get

public Instruction get(int id)
                throws FidoDatabaseException,
                       InstructionNotFoundException
Returns the GrammarLink type referrenced by the parameter id.

Returns:
type of link
Throws:
GrammarLinkNotFoundException - thrown when the id does not exist in the list
FidoDatabaseException
InstructionNotFoundException

list

public java.util.Collection list()
                          throws FidoDatabaseException
Returns the names of all GrammarLink names in the list. The names of the links are in alphabetical order.

Returns:
list of link names
FidoDatabaseException

listTypes

public java.util.Collection listTypes()
                               throws FidoDatabaseException
Returns the names of all Attribute names in the list. The names of the links are in alphabetical order.

Returns:
list of link names
FidoDatabaseException

hashCode

public int hashCode(java.lang.String id)
             throws FidoDatabaseException,
                    InstructionNotFoundException
FidoDatabaseException
InstructionNotFoundException

hashCode

public int hashCode(int id)
             throws FidoDatabaseException,
                    InstructionNotFoundException
FidoDatabaseException
InstructionNotFoundException

isEmpty

public boolean isEmpty()
                throws FidoDatabaseException
FidoDatabaseException

Fido Alpha 3.2