A B C D E F G H I K L M N O P Q R S T U V W _

A

ACT_EXPORT - Static variable in class DBPorter
Indicates that the command line parser has found the action to be exporting.
ACT_IMPORT - Static variable in class DBPorter
Indicates that the command line parser has found the action to be importing.
ACT_NOTYET - Static variable in class DBPorter
Indicates that the command line parser has not yet found the action.
AUTH_MECH_AIM - Static variable in class AuthInfo
Indiciates that we are attempting to authenticate against an Aim username database.
AUTH_MECH_DRINK_PASS - Static variable in class AuthInfo
Indicates that we are attempting to authenticate using drink-specific passwords.
AUTH_MECH_IDCARD - Static variable in class AuthInfo
Indicates that we are attempting to authenticate against an ID card database.
AUTH_MECH_IMAP - Static variable in class AuthInfo
Indicates that we are attempting to authenticate by using the supplied credentials to attempt to log into an IMAP server.
AUTH_MECH_KERB - Static variable in class AuthInfo
Indicates that we are attempting to authenticate against a kerberos server.
AUTH_MECH_POP3 - Static variable in class AuthInfo
Indicates that we are attempting to authenticate by using the supplied credentials to attempt to log into a POP3 server.
AUTH_MECH_RFID - Static variable in class AuthInfo
Indicates that we are attempting to authenticate against an RFID database.
AUTH_MECH_USER_PASS - Static variable in class AuthInfo
Indicates that we are attempting to authenticate using any sort of mechanism that needs a user-pass pair.
A_BS - Static variable in class ClientServer.ClientServerThread.TelnetInputReader
 
A_CR - Static variable in class ClientServer.ClientServerThread.TelnetInputReader
 
A_DEL - Static variable in class ClientServer.ClientServerThread.TelnetInputReader
 
A_ESC - Static variable in class ClientServer.ClientServerThread.TelnetInputReader
 
A_LF - Static variable in class ClientServer.ClientServerThread.TelnetInputReader
 
A_NAK - Static variable in class ClientServer.ClientServerThread.TelnetInputReader
 
A_NUL - Static variable in class ClientServer.ClientServerThread.TelnetInputReader
 
A_SP - Static variable in class ClientServer.ClientServerThread.TelnetInputReader
 
AcctMgrSpec - interface AcctMgrSpec.
This class defines the interface for performing user management and authentication in the drink system.
AuthInfo - class AuthInfo.
Used for authenticating a user.
AuthInfo() - Constructor for class AuthInfo
 
acct - Variable in class BasicDrinkServer
The AcctMgrSpec that we use for all account management and queries.
acct - Variable in class NetAcctServer
The underlying Account Manager implementation that we actually use.
acctMgr - Variable in class ClientServer
The class we use for performing user authentication and for retreiving that users information.
acctMgr - Variable in class FingerServer
The account manager we get user data from.
acctMgr - Variable in class SundayServer
The account manager
addClient() - Method in class ClientServer
Keeps track of the number of logged in clients.
addClient() - Method in class SundayServer
If MAXCLIENTS has not been reached, then increment clientCount and return true, otherwise return false.
addDrinkButtonListener(DrinkButtonListener) - Method in class BasicDrinkMachine
Add a listener to the list of objects requesting callbacks from the buttons
addDrinkButtonListener(DrinkButtonListener) - Method in interface DrinkMachineSpec
Add a listener to the list of objects requesting callbacks from the buttons
addDrinkButtonListener(DrinkButtonListener) - Method in class FakeDrinkMachine
Adds a listener to the list of objects requesting callbacks from the buttons.
addDrinkButtonListener(DrinkButtonListener) - Method in class LittleDrinkMachine
Add a listener to the list of objects requesting callbacks from the buttons
addDrinkButtonListener(DrinkButtonListener) - Method in class TINIDrinkMachine
Add a listener to the list of objects requesting callbacks from the buttons
addUser(String, String) - Method in interface AcctMgrSpec
Adds a user to the database of known users.
addUser(String, String, int, boolean) - Method in interface AcctMgrSpec
Adds a user to the database of known users using the supplied values to initialize the users account.
addUser(String, String) - Method in class DBLocalAcctMgr
Adds a user from the system.
addUser(String, String, int, boolean) - Method in class DBLocalAcctMgr
Adds a user to the database of known users using the supplied values to initialize the account.
addUser(String, String) - Method in class LocalAcctMgr
Adds a user to the system.
addUser(String, String, int, boolean) - Method in class LocalAcctMgr
Adds a user to the database of known users using the supplied values to initialize the account.
addUser(String, String) - Method in class NetAcctClient
Adds a user to the database of known users.
addUser(String, String, int, boolean) - Method in class NetAcctClient
Adds a user to the database of known users using the supplied values to initialize the account.
address - Variable in class PPort
The machine address of the parallel port.
admin - Variable in class DrinkUser
Whether or not the user is an administrator.
areEqual(byte[], byte[]) - Static method in class Twofish
 
authMech - Variable in class AuthInfo
 
authenticate(DrinkLoggerSpec, String, String) - Static method in class ImapAuth
Wrapper function - uses the default host and port.
authenticate(DrinkLoggerSpec, String, String, String, int) - Static method in class ImapAuth
Perform the authentication.
authenticate() - Method in class NetAcctClient
A simple helper method to perform the initial authentication.
authenticate(String, String, String) - Method in class NetAcctServer
 
authenticated - Variable in class AuthInfo
 
autoFlush - Variable in class ClientServer.TelnetPrintWriter
 
available() - Method in class EncryptedInputStream
Return number of bytes available to read.

B

BLOCK_SIZE - Static variable in class Twofish
 
BasicDrinkMachine - class BasicDrinkMachine.
A class to handle most of the basic, common functions and requirements of the DrinkMachineSpec classes.
BasicDrinkMachine(ConfigMgr) - Constructor for class BasicDrinkMachine
Initializes the class.
BasicDrinkServer - class BasicDrinkServer.
A class to handle the configuration.
BasicDrinkServer(String) - Constructor for class BasicDrinkServer
Performs BasicDrinkServer class-specific initialization.
BasicServer - class BasicServer.
A class to handle the basic crap for the [Sunday,Finger,Client]Server classes.
BasicServer() - Constructor for class BasicServer
 
b0(int) - Static method in class Twofish
 
b1(int) - Static method in class Twofish
 
b2(int) - Static method in class Twofish
 
b3(int) - Static method in class Twofish
 
balance - Variable in class DrinkUser
The balance of credits the user has on their account.
blockDecrypt(byte[], int, Object) - Static method in class Twofish
Decrypt exactly one block of ciphertext.
blockEncrypt(byte[], int, Object) - Static method in class Twofish
Encrypt exactly one block of plaintext.
blockSize() - Static method in class Twofish
 
blocksize - Variable in class EncryptedInputStream
 
blocksize - Variable in class EncryptedOutputStream
 
boolVal(boolean) - Method in class NetAcctServer.NetAcctServerSession
A simple method to convert a String "true" to a boolean 'true'.
buf - Variable in class EncryptedInputStream
 
buf - Variable in class EncryptedOutputStream
 
bus - Variable in class FakeDrinkMachine
The 'bus' object that is used to communicate to the hardware with.
bus - Variable in class TINIDrinkMachine
The bus that we use to communicate to the TINI one-wire devices with.
buttonPressed(int) - Method in interface DrinkButtonListener
This method is called by the DrinkMachine class when a button is depressed.
buttonReleased(int) - Method in interface DrinkButtonListener
This method is called by the DrinkMachine class when a button is released.
buttonloop - Variable in class FakeDrinkMachine
The inner class that handles Button Event processing and dispatching.

C

CHECK_WAIT_TIME - Static variable in class NetAcctClient.ConnectionMgr
This is the amount of time (in seconds) to wait between checks.
CHECK_WAIT_TIME - Static variable in class NetLogClient.LogConnectionMgr
This is the amount of time (in seconds) to wait between checks.
ClientServer - class ClientServer.
This is a drink client designed to run directly on a drink machine alongside of the regular software.
ClientServer(DrinkMachineSpec, AcctMgrSpec, DrinkLoggerSpec, ConfigMgr) - Constructor for class ClientServer
This is the constructor for the ClientServer class.
ClientServer.ClientServerThread - class ClientServer.ClientServerThread.
Handles new client connections.
ClientServer.ClientServerThread(Socket, ClientServer) - Constructor for class ClientServer.ClientServerThread
Constructs the thread.
ClientServer.ClientServerThread.TelnetInputReader - class ClientServer.ClientServerThread.TelnetInputReader.
This class handles the input gathering and processing functions as well as the required echoing.
ClientServer.ClientServerThread.TelnetInputReader(BufferedInputStream, PrintWriter) - Constructor for class ClientServer.ClientServerThread.TelnetInputReader
Constructs the TelnetInputReader.
ClientServer.TelnetPrintWriter - class ClientServer.TelnetPrintWriter.
Extends the PrintWriter class to replace the println() method, so that it always prints a CR LF, which is required by the telnet protocol.
ClientServer.TelnetPrintWriter(OutputStream) - Constructor for class ClientServer.TelnetPrintWriter
Create a new PrintWriter, without automatic line flushing, from an existing OutputStream.
ClientServer.TelnetPrintWriter(OutputStream, boolean) - Constructor for class ClientServer.TelnetPrintWriter
Create a new PrintWriter from an existing OutputStream.
ClientServer.TelnetPrintWriter(Writer) - Constructor for class ClientServer.TelnetPrintWriter
Create a new PrintWriter, without automatic line flushing.
ClientServer.TelnetPrintWriter(Writer, boolean) - Constructor for class ClientServer.TelnetPrintWriter
Creates a new PrintWriter.
ConfigConverter - class ConfigConverter.
A utility to convert the old config file formatted slot information into the new SlotDataMgr format.
ConfigConverter() - Constructor for class ConfigConverter
 
ConfigMgr - class ConfigMgr.
A class to parse and store the config hash table.
ConfigMgr(String) - Constructor for class ConfigMgr
Construct the class by saving the param and parsing the config file.
c1 - Static variable in class GcjHacks
 
calcTemp(String) - Method in class FakeDrinkMachine
Pretends to tell a temperature sensor to calculate its current temperature.
calcTemp(String) - Method in class TINIDrinkMachine
Tells the one-wire temperature sensor to begin calculating its temperature.
cans - Variable in class Slot
 
client - Variable in class ClientServer.ClientServerThread
 
client - Variable in class NetLogServer
The socket that is connected to the client, from which we read our the messages the client is sending to us.
client - Variable in class SundayServer.SundayClientThread
The socket that is connected to our client.
clientCount - Static variable in class ClientServer
The number of currenlty connected clients.
clientCount - Variable in class SundayServer
How many clients are currently connected.
close() - Method in class EncryptedInputStream
 
close() - Method in class EncryptedOutputStream
Close the stream.
close() - Method in class SlotDataMgr
Tells this class to close the file and invalidate itself.
closeMgr() - Method in class DBLocalAcctMgr
Causes the account manager to invalidate itself and close all database connections.
closed - Variable in class SlotDataMgr
 
config - Variable in class BasicDrinkServer
The ConfigMgr that we get our config values from.
config - Static variable in class ConfigConverter
 
config - Variable in class ConfigMgr
This stores the key-value pairs that make up the ConfigMgr.
config - Variable in class NetAcctServer
Where we get our config data from.
configFile - Static variable in class NetAcctServer
The file we read our config data out of.
configMgr - Variable in class BasicDrinkMachine
The object to use to manipulate the config database.
configMgr - Variable in class ClientServer
Where we get our runtime configuration data from.
configMgr - Variable in class DBLocalAcctMgr
The ConfigMgr to get our configuration data from.
configMgr - Variable in class FakeDrinkMachine
The object that we use to manipulate the configuration database.
configMgr - Variable in class FingerServer
The ConfigMgr that we get our runtime configuration data from.
configMgr - Variable in class LittleDrinkMachine
The class that handles configuration manipulation.
configMgr - Variable in class LocalAcctMgr
Where the class gets its runtime configuration data from.
configMgr - Variable in class NetAcctClient
Where we get our runtime configuration management data from.
configMgr - Variable in class SundayServer
Where we get our runtime configuration values from.
configMgr - Variable in class TINIDrinkMachine
The object we pull our configuration values from.
configfile - Variable in class BasicDrinkServer
The name of the file to read our config data from.
configfile - Variable in class ConfigMgr
The filename of the file to read the runtime configuration data from.
conn - Variable in class DBLocalAcctMgr
The connection to the database.
connMgr - Variable in class NetAcctClient
The class responsible for maintaining the connection between this class and the server.
connected - Variable in class DBLocalAcctMgr
Whether or not the class has a valid connection to the database.
connection - Variable in class NetAcctClient
The connection to the server.
connection - Variable in class NetLogClient
The connection to the server which actually stores the log.
cserv - Variable in class ClientServer.ClientServerThread
 

D

DBLocalAcctMgr - class DBLocalAcctMgr.
An implementation of the AcctMgrSpec interface that uses a postgres backend.
DBLocalAcctMgr(DrinkLoggerSpec, ConfigMgr) - Constructor for class DBLocalAcctMgr
Pulls the configuration data (host, db, user, pass) from the given ConfigMgr object.
DBLocalAcctMgr(DrinkLoggerSpec, String, String, String, String) - Constructor for class DBLocalAcctMgr
Construct the account manager by trying to connect to the db server.
DBPorter - class DBPorter.
This class provides methods for retrieving and submitting data to and from the database-backed account server.
DBPorter() - Constructor for class DBPorter
 
DBPorter.SysoutLogger - class DBPorter.SysoutLogger.
TODO: Make this its own class.
DBPorter.SysoutLogger() - Constructor for class DBPorter.SysoutLogger
 
DBTest - class DBTest.
 
DBTest() - Constructor for class DBTest
 
DBTest.NullLogger - class DBTest.NullLogger.
 
DBTest.NullLogger() - Constructor for class DBTest.NullLogger
 
DEBUG - Variable in class EncryptedInputStream
 
DEBUG - Static variable in class EncryptedOutputStream
 
DEFAULT_BUFFER_SIZE - Static variable in class EncryptedInputStream
 
DEFAULT_BUFFER_SIZE - Static variable in class EncryptedOutputStream
 
DEFAULT_PORT - Static variable in class NetAcctServer
The port that the account manager runs on when no "-p port" command line option is specified.
DEFAULT_PORT - Static variable in class NetLogServer
The port that this server normally listens on.
DrinkButtonListener - interface DrinkButtonListener.
Defines the interface for any class that listens for button events.
DrinkLoggerSpec - interface DrinkLoggerSpec.
The interface specifying the services to be provided by any logging mechanism.
DrinkMachineSpec - interface DrinkMachineSpec.
Defines the interface for classes wishing to be responsible for communication between the rest of the software and the machine it is controlling.
DrinkUser - class DrinkUser.
A class to store drink user information.
DrinkUser(String, String, int, boolean) - Constructor for class DrinkUser
Construct the Drink user.
data - Variable in class AuthInfo
 
db - Variable in class DBLocalAcctMgr
The database to connect to.
dbls - Variable in class FakeDrinkMachine.ButtonLoop
A vector of the objects wishing to receive callbacks.
dbls - Variable in class TINIDrinkMachine.ButtonLoop
 
decreaseUserBalance(String, int) - Method in interface AcctMgrSpec
Decrements a user's balance by the given amount.
decreaseUserBalance(String, int) - Method in class DBLocalAcctMgr
Decrements a users balance
decreaseUserBalance(String, int) - Method in class LocalAcctMgr
Decrements a users balance.
decreaseUserBalance(String, int) - Method in class NetAcctClient
Decrements a users balance by the specified amount.
defaultConfigName - Static variable in class FakeDrinkServer
The name of the file that stores all the configuration data.
defaultConfigName - Static variable in class LittleDrinkServer
The default filename to use for the configfile.
defaultConfigName - Static variable in class TINIDrinkServer
The default filename for the configfile.
defaultHost - Static variable in class ImapAuth
 
delDrinkButtonListener(DrinkButtonListener) - Method in class BasicDrinkMachine
Removes a listener from the list of objects requesting callbacks from the buttons.
delDrinkButtonListener(DrinkButtonListener) - Method in interface DrinkMachineSpec
Removes a listener from the list of objects requesting callbacks from the buttons.
delDrinkButtonListener(DrinkButtonListener) - Method in class FakeDrinkMachine
Removes a listen from the list of objects requesting callbacks from the buttons.
delDrinkButtonListener(DrinkButtonListener) - Method in class LittleDrinkMachine
Remove a listener from the list of objects requesting callbacks from the buttons
delDrinkButtonListener(DrinkButtonListener) - Method in class TINIDrinkMachine
Remove a listener from the list of objects requesting callbacks from the buttons
drink - Variable in class ClientServer
The DrinkMachineSpec we use for communicating with the hardware with.
drink - Variable in class FakeDrinkServer
The DrinkMachineSpec that we create (which is FakeDrinkMachine) and supply to the rest of the program.
drink - Variable in class FingerServer
The Drink machine we are to use for hardware access.
drink - Static variable in class LittleDrinkServer
The DrinkMachineSpec that we will instantiate and then feed to BasicDrinkServer
drink - Variable in class SundayServer
The logger.
drink - Static variable in class TINIDrinkServer
The DrinkMachineSpec that we will fill in with TINIDrinkMachine, and later pass to BasicDrinkMachine.
drinkButtonListeners - Variable in class FakeDrinkMachine
The Vector of objects that want to be notified of button events.
drinkButtonListeners - Variable in class LittleDrinkMachine
The Vector of objects that want Button events.
drinkButtonListeners - Variable in class TINIDrinkMachine
The objects that want button events.
drinksDropped(int) - Method in class BasicDrinkMachine
Returns the number of drinks that have come out of a slot If the slot is invalid, zero is returned.
drinksDropped(int) - Static method in class ConfigConverter
Returns the number of drinks dropped by the given slot.
drinksDropped(int) - Method in interface DrinkMachineSpec
Returns the number of drinks that have been dropped by the given slot.
drinksLeft(int) - Method in class BasicDrinkMachine
Returns the number of drinks left in a slot.
drinksLeft(int) - Static method in class ConfigConverter
Returns the number of drinks left in the given slot.
drinksLeft(int) - Method in interface DrinkMachineSpec
Returns the number of drinks left in a given slot.
drop(int) - Method in class BasicDrinkMachine
Drops a drink on the specified slot index.
drop(int) - Method in interface DrinkMachineSpec
Drops a drink on the specified index.
drop(int) - Method in class FakeDrinkMachine
Drops a drink by pretending to activate the appropriate one-wire switches
drop(int) - Method in class LittleDrinkMachine
Drops a drink.
drop(int) - Method in class TINIDrinkMachine
Drops a drink.
dropDrink(String, int, int) - Method in class ClientServer.ClientServerThread
Attempt to drop a drink, checking both user balance and slot quantity first.
dropDrink(String, String) - Method in class SundayServer.SundayClientThread
Parses out the information, verifies everything, and then drops the drink.
dropRand(String, String) - Method in class SundayServer.SundayClientThread
Drops a random drink.
dropped - Variable in class Slot
 
dump() - Method in interface AcctMgrSpec
This provides a dump of all the data for every user known to the system.
dump() - Method in class DBLocalAcctMgr
TODO: This is not a set anymore.
dump() - Method in class LocalAcctMgr
Returns a vector of DrinkUser objects containing the data for every single last known user.
dump() - Method in class NetAcctClient
TODO: Implement this....

E

EncryptedInputStream - class EncryptedInputStream.
 
EncryptedInputStream(InputStream) - Constructor for class EncryptedInputStream
Creates an EncryptedInputStream with the default buffer size
EncryptedInputStream(InputStream, int) - Constructor for class EncryptedInputStream
Create an EncryptedInputStream with the given input stream and buffer size
EncryptedOutputStream - class EncryptedOutputStream.
 
EncryptedOutputStream(OutputStream) - Constructor for class EncryptedOutputStream
Create an EncryptedOutputStream with the default buffer size.
EncryptedOutputStream(OutputStream, int) - Constructor for class EncryptedOutputStream
Create an EncryptedOutputStream with a given buffer size.
editSlot(String) - Method in class SundayServer.SundayClientThread
Edit a slots information.
editUser(String) - Method in class SundayServer.SundayClientThread
Edit a users account information.
enabled - Variable in class Slot
 
end - Variable in class EncryptedInputStream
 
end - Variable in class EncryptedOutputStream
 
ensureOpen() - Method in class EncryptedInputStream
Make sure the stream is still open
equals(Slot) - Method in class Slot
 
execUpdate(String) - Method in class DBLocalAcctMgr
Executes an update of the database, eg INSERT, DELETE, UPDATE.

F

F32(int, int, int[]) - Static method in class Twofish
 
FakeDrinkMachine - class FakeDrinkMachine.
A DrinkMachineSpec implementation designed to simulate the environment drink would run in when on the TINI to allow for testing on any machine.
FakeDrinkMachine(ConfigMgr, DrinkLoggerSpec) - Constructor for class FakeDrinkMachine
Takes a string for the configfile to user.
FakeDrinkMachine.ButtonLoop - class FakeDrinkMachine.ButtonLoop.
A private class to do the callbacks for the buttons.
FakeDrinkMachine.ButtonLoop(Vector) - Constructor for class FakeDrinkMachine.ButtonLoop
 
FakeDrinkServer - class FakeDrinkServer.
This is a simple wrapper that spawns DrinkMachineSpec, AcctMgrSpec, SundayServer, FingerServer, ClientServer and TestButtonClient for purposes of testing the drink software, and for demonstration purposes.
FakeDrinkServer(String) - Constructor for class FakeDrinkServer
Starts the server.
Fe32(int[], int, int) - Static method in class Twofish
 
FingerServer - class FingerServer.
Implements a finger-protocol server to provide information about drink through finger.
FingerServer(DrinkMachineSpec, AcctMgrSpec, DrinkLoggerSpec, ConfigMgr) - Constructor for class FingerServer
Constructs the FingerServer.
file - Variable in class SlotDataMgr
 
filename - Variable in class LocalAcctMgr
The file that stores the accounts data.
filename - Variable in class LocalDrinkLogger
The file that we are printing our log messages to.
filename - Variable in class SlotDataMgr
 
fill() - Method in class EncryptedInputStream
Read from the underlying input stream and decrypt the data.
flush() - Method in class EncryptedOutputStream
Flush the buffer.
formatSlotLine(String, String, String, String, String) - Static method in class BasicDrinkMachine
Formats the given parameters into specific width columns.

G

GF256_FDBK - Static variable in class Twofish
Primitive polynomial for GF(256)
GF256_FDBK_2 - Static variable in class Twofish
 
GF256_FDBK_4 - Static variable in class Twofish
 
GcjHacks - class GcjHacks.
A class to implicitely cause gcj to include boot class files that it won't include normally.
GcjHacks() - Constructor for class GcjHacks
 
get(String) - Method in class ConfigMgr
Retrieve a value given its key.
getAdmin() - Method in class DrinkUser
Returns the user's admin status.
getBalance() - Method in class DrinkUser
Returns the user's balance.
getBool(String) - Method in class ConfigMgr
Retrieves the value of the key from the configuration, then attempts to parse boolean data from it.
getBus() - Method in class TINIDrinkMachine
Returns the one-wire bus that is used by this TINIDrinkMachine
getCans() - Method in class Slot
Returns the number of cans left in the slot
getDrinkNames() - Method in class BasicDrinkMachine
 
getDrinkNames() - Method in interface DrinkMachineSpec
Returns a Vector of String objects specifying the names of the slots.
getDropped() - Method in class Slot
Returns the number of cans that have been dropped from this slot.
getIndex() - Method in class Slot
Returns the index of this slot.
getInt(String) - Method in class ConfigMgr
Retrieves the value of the key from the configuration, then attempts to parse integer data from it.
getName(int) - Method in class BasicDrinkMachine
Returns the name of a the drink specified by the index.
getName(int) - Method in interface DrinkMachineSpec
Returns the name of the the specified slot.
getName() - Method in class Slot
Returns the name or drink in the slot
getNumSlots() - Method in class BasicDrinkMachine
Returns the number of slots this machine has.
getNumSlots() - Method in interface DrinkMachineSpec
Returns the number of slots that can carry soda.
getPassword() - Method in class DrinkUser
Returns the user's password.
getPrice(int) - Method in class BasicDrinkMachine
Returns the price of a drink in credits (cents).
getPrice(int) - Static method in class ConfigConverter
Returns the price of the slot.
getPrice(int) - Method in interface DrinkMachineSpec
Returns the price of the drink in the associated slot.
getPrice() - Method in class Slot
Returns the price of the slot in credits (cents).
getSlot(int) - Method in class BasicDrinkMachine
Returns a Slot object containing the information for the given slot index.
getSlot(int) - Static method in class ConfigConverter
Returns the Slot object associated with the given slot index.
getSlot(int) - Method in interface DrinkMachineSpec
Returns the Slot object associated with the slot index.
getSlotArray() - Method in class BasicDrinkMachine
Returns an array of Slot objects containing the information for all of the slots.
getSlotArray() - Method in interface DrinkMachineSpec
Returns an array of the Slot objects that store the slot information.
getSlotPrintout() - Method in class BasicDrinkMachine
Generates a preformatted printout of all the slot information.
getSlotPrintout() - Method in interface DrinkMachineSpec
Returns a preformatted printout of the slot information.
getStats(String) - Method in class SundayServer.SundayClientThread
Print the contents and statistics of the drink machine out to the socket.
getString(String) - Method in class ConfigMgr
Retrieves the value of the given key from the configuration and then attempts to cast it to a String object.
getTemp(String) - Method in class FakeDrinkMachine
Pretends to fetch the temperature of a temperature sensor.
getTemp(String) - Method in class TINIDrinkMachine
Retrieves the temperature from the temp sensor.
getTempKey(String) - Method in class BasicDrinkMachine
Returns the temperature from the sensor with the given name (key).
getTempKey(String) - Method in interface DrinkMachineSpec
Returns the temperature from the sensor with the given name (key).
getTempKey(String) - Method in class FakeDrinkMachine
Returns the celsius temperature of a temperature sensor, given the name of the temp sensor.
getTempKey(String) - Method in class LittleDrinkMachine
Returns a Float object representing the temperature of the sensor specified by the key.
getTempKey(String) - Method in class TINIDrinkMachine
Returns a Float object representing the temperature of the sensor specified by the key.
getUserBalance(String) - Method in interface AcctMgrSpec
Determines the number of credits a user has.
getUserBalance(String) - Method in class DBLocalAcctMgr
Queries the DB for the given users balance.
getUserBalance(String) - Method in class LocalAcctMgr
Returns a users balance.
getUserBalance(String) - Method in class NetAcctClient
Retrieves the credit balance on a users account.
getUsername() - Method in class DrinkUser
Returns the user's username.

H

HEADER_LEN - Static variable in class SlotDataMgr
The width, in bytes, of the file header/preamble.
HEX_DIGITS - Static variable in class Twofish
data for hexadecimal visualisation.
HIT_EOF - Variable in class EncryptedInputStream
 
hash - Variable in class LocalAcctMgr
Stores the DrinkUser information.
hashCode() - Method in class DrinkUser
Returns a hashcode of the username stored in this DrinkUser.
host - Variable in class DBLocalAcctMgr
The database server's hostname.
host - Variable in class NetLogClient
The hostname or IP of the host we are connected to.
hostname - Static variable in class LocalAcctMgr
The mail server we use to imap authenticate with.

I

IMAP_PORT - Static variable in class ImapAuth
 
INPUT_WHITEN - Static variable in class Twofish
 
ImapAuth - class ImapAuth.
A class to provide an interface for authenticating against an IMAP server.
ImapAuth() - Constructor for class ImapAuth
 
InvalidKeyException - exception InvalidKeyException.
This is the exception for invalid Keys (invalid encoding, wrong length, uninitialized, etc).
InvalidKeyException() - Constructor for class InvalidKeyException
Constructs an InvalidKeyException with no detail message.
InvalidKeyException(String) - Constructor for class InvalidKeyException
Constructs an InvalidKeyException with the specified detail message.
imapHost - Variable in class DBLocalAcctMgr
The IMAP host to authenticate users against.
in - Variable in class ClientServer.ClientServerThread.TelnetInputReader
 
in - Variable in class ClientServer.ClientServerThread
 
in - Variable in class NetAcctClient
The BufferedReader that wraps around the input stream from the socket.
in - Variable in class SundayServer.SundayClientThread
Connected to the sockets input stream.
inb(int) - Static method in class PPort
 
increaseUserBalance(String, int) - Method in interface AcctMgrSpec
Increases a user's balance by the given amount.
increaseUserBalance(String, int) - Method in class DBLocalAcctMgr
Updates the database with the given users balance.
increaseUserBalance(String, int) - Method in class LocalAcctMgr
Increments a users balance.
increaseUserBalance(String, int) - Method in class NetAcctClient
Increases a users balance.
index - Variable in class Slot
 
initialize(String, String, String, String) - Method in class DBLocalAcctMgr
Performs the common part of the class construction.
initialize() - Method in class LocalAcctMgr
TODO: Cleanup.
initialize(String, boolean) - Method in class LocalDrinkLogger
Initialize the LocalDrinkLogger by opening the file.
initialize(String, int) - Method in class NetLogClient
Set up the client-side of the networked logging software.
intDump(String) - Method in class ClientServer.ClientServerThread.TelnetInputReader
Takes the given string input and converts it to a decimal string in the form 100:100:90:80 so that unprinted characters will be 'visible'
intToString(int) - Static method in class Twofish
Returns a string of 8 hexadecimal digits (most significant digit first) corresponding to the integer n, which is treated as unsigned.
ipAddy - Variable in class NetLogServer
The IP address of the host we are logging for.
isConnected() - Method in class NetAcctClient.ConnectionMgr
Determines if the socket is connected or not.
isEnabled(int) - Method in class BasicDrinkMachine
Determines if a given slot is enabled or disabled.
isEnabled(int) - Static method in class ConfigConverter
Determines if the given slot is enabled.
isEnabled(int) - Method in interface DrinkMachineSpec
Checks to see if a slot is enabled or disabled.
isEnabled() - Method in class Slot
Returns whether or not the slot is enabled.
isHostIPAllowed(String) - Method in class NetAcctServer
Determines whether or not the specified host is allowed to connect and communicate with the account server.
isSystemReady() - Method in interface AcctMgrSpec
Returns whether or not the AcctMgrSpec is ready to process transactions.
isSystemReady() - Method in class DBLocalAcctMgr
Returns whether or not the database backend is ready to process requests.
isSystemReady() - Method in class LocalAcctMgr
As specified in AcctMgrSpec, this returns whether or not the system is ready and available to process transactions.
isSystemReady() - Method in class NetAcctClient
Verifies that the connection to the server is ready and working.
isUserAdmin(String) - Method in interface AcctMgrSpec
Determines if a given user is an administrator of drink.
isUserAdmin(String) - Method in class DBLocalAcctMgr
Tests to see if the given user is an administrator.
isUserAdmin(String) - Method in class LocalAcctMgr
Looks-up the admin status of a user.
isUserAdmin(String) - Method in class NetAcctClient
Checks to see if a user is an admin.
isValidUser(String, String) - Method in interface AcctMgrSpec
Authenticates a user.
isValidUser(String) - Method in interface AcctMgrSpec
Determines if a user is known to the Drink system.
isValidUser(String) - Method in class DBLocalAcctMgr
Checks to see if the user is registered in the database.
isValidUser(String, String) - Method in class DBLocalAcctMgr
Authenticates a user.
isValidUser(String, String) - Method in class LocalAcctMgr
Validates a user against the CSH IMAP server.
isValidUser(String) - Method in class LocalAcctMgr
Determines if the username is known to drink.
isValidUser(String) - Method in class NetAcctClient
Determines if a user is known to the system.
isValidUser(String, String) - Method in class NetAcctClient
Authenticates a user.

K

KEY_SIZE - Static variable in class EncryptedInputStream
 
KEY_SIZE - Static variable in class EncryptedOutputStream
 
key - Variable in class EncryptedInputStream
 
key - Variable in class EncryptedOutputStream
 
killAfterDrop - Variable in class ClientServer
Whether or not to kill the connection immediately after a drop.

L

LFSR1(int) - Static method in class Twofish
 
LFSR2(int) - Static method in class Twofish
 
LittleDrinkMachine - class LittleDrinkMachine.
Implements the DrinkMachineSpec interface (by way of BasicDrinkMachine extension) for Little Drink (uses a parallel port hardware interface).
LittleDrinkMachine(ConfigMgr, DrinkLoggerSpec) - Constructor for class LittleDrinkMachine
Construct the LittleDrinkMachine by saving the passed in parameters, reading in the config file, and reading in a few variables.
LittleDrinkMachine.ButtonLoop - class LittleDrinkMachine.ButtonLoop.
A class to independantly handle the callbacks for the buttons.
LittleDrinkMachine.ButtonLoop() - Constructor for class LittleDrinkMachine.ButtonLoop
 
LittleDrinkServer - class LittleDrinkServer.
This is the entry point for the drink server implemented on a laptop with a parallel-port interface to the slot electronics.
LittleDrinkServer(String) - Constructor for class LittleDrinkServer
Start up the entire server.
LocalAcctMgr - class LocalAcctMgr.
Implements the AcctMgrSpec interface to provide basic account management and persistence functions using local disk space.
LocalAcctMgr(DrinkLoggerSpec, ConfigMgr) - Constructor for class LocalAcctMgr
Saves the DrinkLogger variable and sets up the hashmap from the accounts text file.
LocalDrinkLogger - class LocalDrinkLogger.
A basic class to perform logging for the drink software.
LocalDrinkLogger(String, boolean) - Constructor for class LocalDrinkLogger
Construct the class using the provided values instead of retrieving them from the configuration.
LocalDrinkLogger(String) - Constructor for class LocalDrinkLogger
A constructor which assumes demarcation by default.
LocalDrinkLogger(ConfigMgr) - Constructor for class LocalDrinkLogger
Reads the settings out of the configuration file and then constructs from that.
lightOff(int) - Method in class BasicDrinkMachine
Turns the (empty) light of for the specified slot.
lightOff(int) - Method in interface DrinkMachineSpec
Turns the (empty) light of for the specified slot.
lightOff(int) - Method in class FakeDrinkMachine
Pretends to turn a slots (empty) light off
lightOff(int) - Method in class LittleDrinkMachine
Turns the given slots empty indicator off.
lightOff(int) - Method in class TINIDrinkMachine
Turns the given slots [empty] light off.
lightOn(int) - Method in class BasicDrinkMachine
Turns the (empty) light on for the specified slot.
lightOn(int) - Method in interface DrinkMachineSpec
Turns the (empty) light on for the specified slot.
lightOn(int) - Method in class FakeDrinkMachine
Pretends to turn a slots (empty) light on.
lightOn(int) - Method in class LittleDrinkMachine
Turns the given slots empty indicator on.
lightOn(int) - Method in class TINIDrinkMachine
Turns the given slots [empty] light on.
lightStatus - Variable in class TINIDrinkMachine
The status's of the lights.
listen - Static variable in class ClientServer
The socket to listen for client connections on.
listen - Variable in class FingerServer
The ServerSocket that listens for connections from new clients.
listen - Variable in class NetAcctServer
The socket that the clients connect on.
listen - Variable in class SundayServer
The socket we listen for connections from clients on.
listener - Static variable in class NetLogServer
The ServerSocket where all incoming clients connect to.
loadConfig(String) - Method in class ConfigMgr
A helper method to parse and store the config.
location - Variable in class ClientServer
A description of the location of the machine.
location - Variable in class FingerServer
A description of the location of the machine.
location - Variable in class SundayServer
A description of the location of the machine.
log - Variable in class BasicDrinkServer
The DrinkLoggerSpec that we use to log stuff.
log - Variable in class ClientServer
The DrinkLoggerSpec we log all our errors/etc to.
log - Variable in class DBLocalAcctMgr
The DrinkLoggerSpec to log information/errors/aborts to.
log - Variable in class FakeDrinkMachine
The Object that we send our log messages to.
log - Variable in class FingerServer
Where we send our log messages for info/errors/etc.
log - Variable in class LittleDrinkMachine
The class we send our log messages to.
log - Variable in class LocalAcctMgr
Our logger.
log - Variable in class NetAcctClient
Where we send all of our log messages.
log - Variable in class NetAcctServer.NetAcctServerSession
 
log - Variable in class NetAcctServer
The class to use for logging.
log - Variable in class NetLogServer
The log an individual session uses to write the actual message.
log - Variable in class SundayServer
The drink machine
log - Variable in class TINIDrinkMachine
The class we send all of our log information to.

M

MAX_ROUNDS - Static variable in class Twofish
 
MDS - Static variable in class Twofish
MDS matrix
Mx_1(int) - Static method in class Twofish
 
Mx_X(int) - Static method in class Twofish
 
Mx_Y(int) - Static method in class Twofish
 
main(String[]) - Static method in class ConfigConverter
Converts the named hashmap-style config file to the new SlotDataMgr format for the slots data.
main(String[]) - Static method in class DBPorter
Reads in the command line arguments, processes them, creates the appopriate backend, and then starts the port process.
main(String[]) - Static method in class DBTest
 
main(String[]) - Static method in class FakeDrinkServer
The class needs to be instantiated so that it can properly use BasicDrinkServer.
main(String[]) - Static method in class LittleDrinkServer
The class needs to be instantiated so that it can properly use BasicDrinkServer.
main(String[]) - Static method in class NetAcctServer
Start the server.
main(String[]) - Static method in class NetLogServer
The entry point for the program.
main(String[]) - Static method in class PPort
A simple main method to test the class.
main(String[]) - Static method in class TINIDrinkServer
TINIDrinkServer needs to be instantiated so that it may properly make use of BasicDrinkServer.
main(String[]) - Static method in class TestSlotDataMgr
Runs the suite of tests on the SlotDataMgr class.
makeKey(byte[]) - Static method in class Twofish
Expand a user-supplied key material into a session key.
markSupported() - Method in class EncryptedInputStream
Return true if this stream supports mark and reset.
maxClients - Variable in class ClientServer
The maximum number of connected clients.
maxClients - Variable in class SundayServer
The maximum number of clients we are to allow to connect.
maxDelay - Variable in class ClientServer
The maximum a user can request that the drop be delayed for.
maxDelay - Variable in class SundayServer
The maximum a user can request that the drop be delayed for.
mgr - Variable in class NetAcctServer.NetAcctServerSession
 
motd - Variable in class ClientServer
The message of the day to display to users.
motd - Variable in class FingerServer
The message of the day to display to users.
motd - Variable in class SundayServer
The message of the day to display to users.

N

NUMRETRIES - Static variable in class TINIDrinkMachine
 
NetAcctClient - class NetAcctClient.
This class is the client to the networked account server (NetAcctServer).
NetAcctClient(DrinkLoggerSpec, ConfigMgr) - Constructor for class NetAcctClient
Construct a new NetAcctClient to connect to the specified NetAcctServer on the specified port.
NetAcctClient.ConnectionMgr - class NetAcctClient.ConnectionMgr.
Basically, this class keeps track of the connection to the NetAcctServer and trys to ensure that it is always connected.
NetAcctClient.ConnectionMgr() - Constructor for class NetAcctClient.ConnectionMgr
Initialize the ConnectionMgr class by getting a reference to the sockets OutputStream, then initializing the 'nop' variable that is used to send pings to the account server.
NetAcctServer - class NetAcctServer.
This class provides a multithreaded, network interface to the drink accounting system.
NetAcctServer(DrinkLoggerSpec, AcctMgrSpec, int) - Constructor for class NetAcctServer
Instantiates a new NetAcctServer to listen for and handle incoming connections by threading-off the new connections.
NetAcctServer.NetAcctServerSession - class NetAcctServer.NetAcctServerSession.
Handles processing and IO for individual client sessions.
NetAcctServer.NetAcctServerSession(Socket, AcctMgrSpec, DrinkLoggerSpec) - Constructor for class NetAcctServer.NetAcctServerSession
Constructs the session.
NetLogClient - class NetLogClient.
The client side of the software that implements the remote logging capabilities for the drink software.
NetLogClient(ConfigMgr) - Constructor for class NetLogClient
Set up the class using the configuration values from the given ConfigMgr.
NetLogClient.LogConnectionMgr - class NetLogClient.LogConnectionMgr.
This inner class is designed to maintain the socket connection from the NetLogClient to the NetLogServer.
NetLogClient.LogConnectionMgr() - Constructor for class NetLogClient.LogConnectionMgr
Initialize the class by saving the OutputStream and figuring out the connections initial state.
NetLogServer - class NetLogServer.
The server end of the remote logging software.
NetLogServer(DrinkLoggerSpec, Socket) - Constructor for class NetLogServer
Set up an individual session of logging.
name - Variable in class Slot
 
naturalInt(String) - Method in class FingerServer
Tests to see if the given string is a non-zero number.
negotiate(PrintWriter) - Method in class ClientServer.ClientServerThread
Performs the telnet negotiation.
nop - Variable in class NetAcctClient.ConnectionMgr
The string to write as the 'no operation' operation command.
nop - Variable in class NetLogClient.LogConnectionMgr
The string to write as the 'no operation' operation command.
numSlots - Variable in class BasicDrinkMachine
The number of slots this machine contains.
numslots - Static variable in class ConfigConverter
 

O

OUTPUT_WHITEN - Static variable in class Twofish
 
out - Variable in class ClientServer.ClientServerThread.TelnetInputReader
 
out - Variable in class ClientServer.ClientServerThread
 
out - Variable in class LocalDrinkLogger
The PrintWriter that is connected the file that we are actually saving the log messages to.
out - Variable in class NetAcctClient
The PrintWriter that wraps around the output stream for the socket.
out - Variable in class SundayServer.SundayClientThread
Connected to the socket's output stream.
outb(int) - Method in class PPort
Sends a single byte out on the port.
outb(int, int) - Static method in class PPort
These are function prototypes declaring that the real outb/inb are actually impleted in JNI code.
output - Variable in class NetLogClient
The PrintWriter that is connected to the socket that we use for sending the log message to the server.

P

P - Static variable in class Twofish
Fixed 8x8 permutation S-boxes
POWERDOWNTIME - Static variable in class TINIDrinkMachine
 
PPort - class PPort.
This class provides access to the parallel port via JNI.
PPort(int) - Constructor for class PPort
Constructs the class by simply saving the passed-in-parameters.
P_00 - Static variable in class Twofish
Define the fixed p0/p1 permutations used in keyed S-box lookup.
P_01 - Static variable in class Twofish
 
P_02 - Static variable in class Twofish
 
P_03 - Static variable in class Twofish
 
P_04 - Static variable in class Twofish
 
P_10 - Static variable in class Twofish
 
P_11 - Static variable in class Twofish
 
P_12 - Static variable in class Twofish
 
P_13 - Static variable in class Twofish
 
P_14 - Static variable in class Twofish
 
P_20 - Static variable in class Twofish
 
P_21 - Static variable in class Twofish
 
P_22 - Static variable in class Twofish
 
P_23 - Static variable in class Twofish
 
P_24 - Static variable in class Twofish
 
P_30 - Static variable in class Twofish
 
P_31 - Static variable in class Twofish
 
P_32 - Static variable in class Twofish
 
P_33 - Static variable in class Twofish
 
P_34 - Static variable in class Twofish
 
pass - Variable in class DBLocalAcctMgr
The password for the database username
passFile - Variable in class NetAcctClient
The file that stores the password that the CLIENT uses to authenticate to the server.
password - Variable in class ClientServer.ClientServerThread
 
password - Variable in class DrinkUser
The user's password.
performAuth - Variable in class LocalAcctMgr
Whether or not to actually authenticate users.
performAuth - Variable in class NetAcctClient
Whether or not to actually care about authentication.
port - Variable in class ClientServer
The port number we are to listen on for connections.
port - Variable in class FingerServer
The port number we are to listen on for connections.
port - Variable in class NetAcctServer
The port that we are listening on.
port - Variable in class NetLogClient
The port on the server that we are connected to.
port - Variable in class SundayServer
The port to listen on for client connections.
pos - Variable in class EncryptedInputStream
 
pos - Variable in class EncryptedOutputStream
 
pport - Variable in class LittleDrinkMachine
Our interface to the hardware's parrallel port.
price - Variable in class Slot
 
printDemarcation() - Method in class NetLogClient
A small helper method to print the demarcation that is printed when a new server session is started.
printInfo(PrintWriter) - Method in class FingerServer
Prints a quick guide to the targets that the finger server provides.
printOptions() - Method in class ClientServer.ClientServerThread
Prints the options the user has.
printSlots() - Method in class ClientServer.ClientServerThread
Print the contents of the drink machine and then the users balance.
printSlots() - Method in class SlotDataMgr
A helper method to print all the slot data in the file.
printStat(PrintWriter) - Method in class FingerServer
Prints the can statistics.
printTemp(PrintWriter) - Method in class FingerServer
Prints the temperature statistics.
printUsage() - Static method in class FakeDrinkServer
Helper method to print the proper way to execute this program.
printUsage() - Static method in class LittleDrinkServer
A simple helper method to print the correct way to execute this program.
printUsage() - Static method in class TINIDrinkServer
A simple helper method to print the usage statement.
printUser(PrintWriter, String) - Method in class FingerServer
Prints the information for a single user.
println() - Method in class ClientServer.TelnetPrintWriter
Reimplements the println() method in PrintWriter so that a CR LF is always printed, instead of whatever system.lineseperater says.
println(String) - Method in class DBPorter.SysoutLogger
 
println(String) - Method in class DBTest.NullLogger
 
println(String) - Method in interface DrinkLoggerSpec
 
println(String) - Method in class LocalDrinkLogger
Prints the specified message to the log file.
println(String) - Method in class NetLogClient
Logs a message to the server.
purgeDatabase() - Method in interface AcctMgrSpec
Tells the database to remove all information regarding users.
purgeDatabase() - Method in class DBLocalAcctMgr
WARNING: USE WITH CAUTION.
purgeDatabase() - Method in class LocalAcctMgr
WARNING: USE WITH CAUTION.
purgeDatabase() - Method in class NetAcctClient
TODO: Implement this...

Q

queryServer(String) - Method in class NetAcctClient
This method sends the server the message and waits for a response.
queryServer(String, String) - Method in class NetAcctClient
Sends a message to the server and returns the response.

R

RECONNECT_WAIT_TIME - Static variable in class NetAcctClient.ConnectionMgr
This is the amount of time (in seconds) to wait between reconnection attempts.
RECONNECT_WAIT_TIME - Static variable in class NetLogClient.LogConnectionMgr
This is the amount of time (in seconds) to wait between reconnection attempts.
RECORD_LEN - Static variable in class SlotDataMgr
The width, in bytes, of each record.
ROUNDS - Static variable in class Twofish
 
ROUND_SUBKEYS - Static variable in class Twofish
 
RS_GF_FDBK - Static variable in class Twofish
 
RS_MDS_Encode(int, int) - Static method in class Twofish
Use (12, 8) Reed-Solomon code over GF(256) to produce a key S-box 32-bit entity from two key material 32-bit entities.
RS_rem(int) - Static method in class Twofish
 
read(boolean) - Method in class ClientServer.ClientServerThread.TelnetInputReader
Reads a single character from the input BufferedInputStream.
read() - Method in class EncryptedInputStream
Read the next byte of data from the input stream.
read(byte[], int, int) - Method in class EncryptedInputStream
Read up to b.length bytes of data into a byte array.
read() - Method in class PPort
Reads a single byte from the port.
readFile() - Method in class SlotDataMgr
Reads the slot data out of the file.
readKey() - Method in class EncryptedInputStream
Read the key from the keyfile
readKey() - Method in class EncryptedOutputStream
Read the key from the keyfile
readLine(boolean) - Method in class ClientServer.ClientServerThread.TelnetInputReader
Reads a line of text using the read() method defined above.
readSwitch(String) - Method in class TINIDrinkMachine
Reads the state of a one-wire switch.
reconnect() - Method in class NetAcctClient.ConnectionMgr
Attempts to reconnect the accounting client to the server, waiting RECONNECT_WAIT_TIME seconds between attempts.
reconnect() - Method in class NetLogClient.LogConnectionMgr
Loops forever trying to reconnect the socket.
remoteHost - Variable in class NetAcctClient
The IP/hostname of the host we are connected to.
remotePort - Variable in class NetAcctClient
The port we are connected to.
removeClient() - Method in class ClientServer
Keeps track of the number of clients If clientCount is not zero, then decrement clientCount and return true, otherwise return false.
removeClient() - Method in class SundayServer
If clientCount is not zero, then decrement clientCount and return true, otherwise return false.
removeUser(String) - Method in interface AcctMgrSpec
Removes a user from the database of known users.
removeUser(String) - Method in class DBLocalAcctMgr
Removes a user from the database.
removeUser(String) - Method in class LocalAcctMgr
Removes a user from the hashmap and account file.
removeUser(String) - Method in class NetAcctClient
Removes a user from the database of known users.
run() - Method in class ClientServer.ClientServerThread
This is the meat of the client.
run() - Method in class ClientServer
This method attempts to accept connections forever, and launches new ClientServerThread's as they come in.
run() - Method in class FakeDrinkMachine.ButtonLoop
 
run() - Method in class FingerServer
Executed when a new connection comes in.
run() - Method in class NetAcctClient.ConnectionMgr
Loops forever checking that the client is connected.
run() - Method in class NetAcctServer.NetAcctServerSession
Process input from the client.
run() - Method in class NetAcctServer
Accepts connects forever and launches new NetAcctServerThread's to handle the incoming connections.
run() - Method in class NetLogClient.LogConnectionMgr
Run in an infinite loop testing the connection, reconnecting it when the connection fails.
run() - Method in class NetLogServer
Actually do something useful.
run() - Method in class SundayServer.SundayClientThread
The run method loops, processing user input and requests.
run() - Method in class SundayServer
The run method accepts client connections.
run() - Method in class TINIDrinkMachine.ButtonLoop
Set up the button states and loop forever polling the butttons

S

SK_BUMP - Static variable in class Twofish
 
SK_ROTL - Static variable in class Twofish
 
SK_STEP - Static variable in class Twofish
 
SLEEPTIME - Static variable in class TINIDrinkMachine
The amount to run the slot motor for.
Slot - class Slot.
Defines a storage class to store information about a single product slot inside the machine.
Slot() - Constructor for class Slot
Default constructor - initialize all the private variables to default values
Slot(int, String, int, int, int, boolean) - Constructor for class Slot
Construct a Slot from supplied values.
SlotDataMgr - class SlotDataMgr.
This class handles slot data persistence for the drink machine software.
SlotDataMgr(String) - Constructor for class SlotDataMgr
Instantiate the class with the name of the file to read/write data to and from.
SundayServer - class SundayServer.
A class that implements Joe Sunday's Drink Protocol for the TINI-board based Drink Server (although, in theory it is abstracted enough to be used on anything that has a DrinkMachineSpec class).
SundayServer(DrinkMachineSpec, AcctMgrSpec, DrinkLoggerSpec, ConfigMgr) - Constructor for class SundayServer
Constructor.
SundayServer.SundayClientThread - class SundayServer.SundayClientThread.
This inner class represents an individual client connection to the server.
SundayServer.SundayClientThread(Socket, SundayServer) - Constructor for class SundayServer.SundayClientThread
Construct the thread by simply saving the passed in variables.
saveConfig() - Method in class LocalAcctMgr
Saves the hashtable that stores all the user information to the accounts text file.
saveSlotArray(Slot[]) - Method in class SlotDataMgr
Write an entire array of slots out to the file this class is handling.
self_test() - Static method in class Twofish
A basic symmetric encryption/decryption test.
self_test(int) - Static method in class Twofish
A basic symmetric encryption/decryption test for a given key size.
server - Variable in class SundayServer.SundayClientThread
A reference to our parent class.
setAdmin(boolean) - Method in class DrinkUser
Changes the user's admin status
setBalance(int) - Method in class DrinkUser
Changes the user's balance.
setCans(int) - Method in class Slot
Changes the number of cans available from the slot.
setDropped(int) - Method in class Slot
Changes the number of cans dropped from this slot.
setEnabled(boolean) - Method in class Slot
Sets whether or not this sl