agentland.output
Class SerialAgent

java.lang.Object
  |
  +--java.rmi.server.RemoteObject
        |
        +--java.rmi.server.RemoteServer
              |
              +--java.rmi.server.UnicastRemoteObject
                    |
                    +--metaglue.AgentAgent
                          |
                          +--agentland.output.SerialAgent

public abstract class SerialAgent
extends AgentAgent
implements Serial

Serial agent for dealing with contention for the Serial ports The Intelligent Room/HAL Project MIT Artificial Intelligence Laboratory Cambridge, MA The designation for this agent must be the full path-name for the serial port which to go through. It is automatically tied to machine specified in attribute "machine".

See Also:
Serialized Form

Inner classes inherited from class metaglue.AgentAgent
AgentAgent.Attribute
 
Field Summary
protected  AgentAgent.Attribute host
           
protected  Serial serial
           
protected  String serialPort
           
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Fields inherited from interface metaglue.Agent
ALIVE, DIED, NO_METAGLUE, NOT_RUNNING, STARTING
 
Constructor Summary
SerialAgent()
          Simply ties the Serial agent to proper host so that it can be used.
 
Method Summary
protected abstract  Serial loadSerial(String serialPort)
           
 void resetSerial()
          Closes the serial ir port, then tries to reopen it isomg ensureSrialIR
 
Methods inherited from class metaglue.AgentAgent
addMonitor, alive, defrost, defrostAll, defrostBoolean, defrostInt, defrostString, fixAttribute, fixAttribute, freeze, freeze, freeze, freezeAll, freezeVar, getAgentID, getAttribute, getCatalog, getCatalogID, getDesignation, getFrozenVariables, getLogLevel, getMetaglueAgent, getMetaglueAgentID, getOccupation, getProperties, getSociety, log, log, log, obtainMetaglueAgent, obtainMetaglueAgent, obtainMetaglueAgentByName, reliesOn, reliesOn, reliesOn, reliesOnSynch, removeFrozen, replaceExceptionHandler, setFreezeName, setLogLevel, setLogName, shutdown, startAgent, startAgentOn, startAgentOn, startup, status, tiedTo, tiedTo, tiedTo, tiedTo, tieToDesignation, whereAreYou
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serial

protected Serial serial

host

protected AgentAgent.Attribute host

serialPort

protected String serialPort
Constructor Detail

SerialAgent

public SerialAgent()
            throws RemoteException
Simply ties the Serial agent to proper host so that it can be used. The actual Serial object is retrieved.
Method Detail

resetSerial

public void resetSerial()
                 throws RemoteException
Closes the serial ir port, then tries to reopen it isomg ensureSrialIR

loadSerial

protected abstract Serial loadSerial(String serialPort)