librarian
Class EuLibrarian

java.lang.Object
  |
  +--librarian.EuLibrarian
Direct Known Subclasses:
visitLibrarian

public class EuLibrarian
extends java.lang.Object


Field Summary
protected  java.lang.String currentProvider
           
protected  librarian.DBInterface dbi
           
protected  java.util.Hashtable designStack
           
 librarian.EuCorder hinter
           
protected static java.lang.String[] keys
           
protected  java.util.Hashtable keywords
           
protected  java.util.Vector loaded
           
protected  int numberOfBeacons
           
protected  java.util.Hashtable onloan
           
protected static java.lang.String[] packageshack
           
protected  librarian.LeaTranslator translator
           
protected  java.util.Hashtable userStack
           
 fundamentals.leaIdentifier workleaid
           
protected  librarian.workCorder[] workMoves
           
 
Constructor Summary
EuLibrarian(librarian.DBInterface dbi)
           
 
Method Summary
 void abortWorkOn()
           
 boolean beginWorkOn(fundamentals.leaIdentifier leaid, boolean isDesigner)
           
 void checkBackIn(fundamentals.leaIdentifier leaid)
          Return Eucorder so that it may be checked out again later
 librarian.EuCorder checkout(fundamentals.leaIdentifier leaid, boolean updatePremise)
           
 librarian.EuCorder checkoutDesignCopy(fundamentals.leaIdentifier leaid)
           
 librarian.EuCorder checkoutUserCopy(fundamentals.leaIdentifier leaid, boolean updatePremise)
          Ask to get a EuCorder loaded up and ready with a given program May throw exceptions if there is no such program, if there were problems loading it, or if the EuCorder is on loan (meaning that recursion was attempted)
 void completeWorkOn(boolean isDesigner)
           
 boolean contains(fundamentals.leaIdentifier leaid)
           
 boolean containsDesignCopy(fundamentals.leaIdentifier leaid)
           
 boolean containsUserCopy(fundamentals.leaIdentifier leaid)
           
 void designSubmit(librarian.EuCorder program)
           
 void errorSubmit(librarian.EuCorder program, int i)
          Request the librarian to save the program in a named EuCorder to the database.
 void forgetStoredCopies(fundamentals.leaIdentifier leaid)
           
protected  librarian.EuCorder getStored(fundamentals.leaIdentifier leaid, java.util.Hashtable stacks)
           
 librarian.EuCorder getWork()
           
 librarian.EuCorder getWork(boolean saveshort)
           
 librarian.workCorder getWorkSegment(int segment)
           
 void initAllWorkSegments(java.lang.String designProvidePackage, int maxOkEntry)
           
protected  void initPpp(librarian.EuCorder program)
           
 boolean isWorking()
           
 librarian.EuCorder loadup(fundamentals.leaIdentifier leaid, java.lang.String user)
          Request the librarian to load up a EuCorder with a named program.
 void registerArchive(interagents.userLab lab, java.util.Random croupier)
           
 void registerPackage(interagents.userLab lab, java.lang.String packagename, java.util.Random croupier)
           
 void registerProgram(interagents.userLab lab, fundamentals.leaIdentifier leaid, java.util.Random croupier)
          IN USE?
 java.lang.String updateHint()
           
 boolean userIsSuper()
           
 void userSubmit(librarian.EuCorder program)
           
 boolean workIsConsistent()
           
 void workReplaceSegment(int segment, librarian.workCorder newsegment)
           
 boolean workSegmentIsEmpty(int segment)
           
 boolean workTestDatumIsDummy(int n)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

translator

protected librarian.LeaTranslator translator

userStack

protected java.util.Hashtable userStack

designStack

protected java.util.Hashtable designStack

keywords

protected java.util.Hashtable keywords

onloan

protected java.util.Hashtable onloan

numberOfBeacons

protected int numberOfBeacons

dbi

protected librarian.DBInterface dbi

loaded

protected java.util.Vector loaded

hinter

public librarian.EuCorder hinter

currentProvider

protected java.lang.String currentProvider

workMoves

protected librarian.workCorder[] workMoves

workleaid

public fundamentals.leaIdentifier workleaid

packageshack

protected static java.lang.String[] packageshack

keys

protected static java.lang.String[] keys
Constructor Detail

EuLibrarian

public EuLibrarian(librarian.DBInterface dbi)
            throws InternalException
Method Detail

checkoutUserCopy

public librarian.EuCorder checkoutUserCopy(fundamentals.leaIdentifier leaid,
                                           boolean updatePremise)
                                    throws LeaException
Ask to get a EuCorder loaded up and ready with a given program May throw exceptions if there is no such program, if there were problems loading it, or if the EuCorder is on loan (meaning that recursion was attempted)

Returns:
a @see EuCorder containing the requested program
LeaException

checkoutDesignCopy

public librarian.EuCorder checkoutDesignCopy(fundamentals.leaIdentifier leaid)
                                      throws LeaException
LeaException

checkout

public librarian.EuCorder checkout(fundamentals.leaIdentifier leaid,
                                   boolean updatePremise)
                            throws LeaException
LeaException

containsUserCopy

public boolean containsUserCopy(fundamentals.leaIdentifier leaid)
                         throws LeaException
LeaException

containsDesignCopy

public boolean containsDesignCopy(fundamentals.leaIdentifier leaid)
                           throws LeaException
LeaException

contains

public boolean contains(fundamentals.leaIdentifier leaid)
                 throws LeaException
LeaException

getStored

protected librarian.EuCorder getStored(fundamentals.leaIdentifier leaid,
                                       java.util.Hashtable stacks)
                                throws InternalException
InternalException

checkBackIn

public void checkBackIn(fundamentals.leaIdentifier leaid)
                 throws InternalException
Return Eucorder so that it may be checked out again later

InternalException

loadup

public librarian.EuCorder loadup(fundamentals.leaIdentifier leaid,
                                 java.lang.String user)
                          throws LeaException
Request the librarian to load up a EuCorder with a named program. If problems arise they will be reported by this method

LeaException

initPpp

protected void initPpp(librarian.EuCorder program)

errorSubmit

public void errorSubmit(librarian.EuCorder program,
                        int i)
                 throws LeaException
Request the librarian to save the program in a named EuCorder to the database.

LeaException

userSubmit

public void userSubmit(librarian.EuCorder program)
                throws LeaException
LeaException

designSubmit

public void designSubmit(librarian.EuCorder program)
                  throws LeaException
LeaException

registerProgram

public void registerProgram(interagents.userLab lab,
                            fundamentals.leaIdentifier leaid,
                            java.util.Random croupier)
                     throws LeaException
IN USE? Request the librarian to forget a named EuCorder, or do nothing if it is not presently loaded.

LeaException

registerPackage

public void registerPackage(interagents.userLab lab,
                            java.lang.String packagename,
                            java.util.Random croupier)
                     throws LeaException
LeaException

registerArchive

public void registerArchive(interagents.userLab lab,
                            java.util.Random croupier)
                     throws LeaException
LeaException

beginWorkOn

public boolean beginWorkOn(fundamentals.leaIdentifier leaid,
                           boolean isDesigner)
                    throws LeaException
LeaException

completeWorkOn

public void completeWorkOn(boolean isDesigner)
                    throws LeaException
LeaException

abortWorkOn

public void abortWorkOn()
                 throws LeaException
LeaException

workSegmentIsEmpty

public boolean workSegmentIsEmpty(int segment)

initAllWorkSegments

public void initAllWorkSegments(java.lang.String designProvidePackage,
                                int maxOkEntry)
                         throws LeaException
LeaException

getWork

public librarian.EuCorder getWork()
                           throws LeaException
LeaException

getWork

public librarian.EuCorder getWork(boolean saveshort)
                           throws LeaException
LeaException

isWorking

public boolean isWorking()

workReplaceSegment

public void workReplaceSegment(int segment,
                               librarian.workCorder newsegment)
                        throws LeaException
LeaException

getWorkSegment

public librarian.workCorder getWorkSegment(int segment)

workTestDatumIsDummy

public boolean workTestDatumIsDummy(int n)

workIsConsistent

public boolean workIsConsistent()

updateHint

public java.lang.String updateHint()

forgetStoredCopies

public void forgetStoredCopies(fundamentals.leaIdentifier leaid)

userIsSuper

public boolean userIsSuper()