org.mbari.siam.moos.utils.chart.sampler
Class SamplerImpl

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by org.mbari.siam.moos.utils.chart.sampler.SamplerImpl
All Implemented Interfaces:
java.io.Serializable, java.rmi.Remote, Sampler

public class SamplerImpl
extends java.rmi.server.UnicastRemoteObject
implements Sampler

See Also:
Serialized Form

Field Summary
protected  java.lang.String _commPortName
           
protected  java.lang.String _dataItem
           
protected  long _deviceID
           
protected  boolean _isApplet
           
protected  boolean _isPaused
           
protected  boolean _isRunning
           
protected static org.apache.log4j.Logger _log4j
          Log4j logger
protected  java.lang.String _nodeURL
           
protected  java.io.OutputStream _ostream
           
protected  DevicePacketStream _packetStream
           
protected  ParserFactory _parserFactory
           
protected  PortalProxy _portalProxy
           
protected  java.lang.String _portalURL
           
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
SamplerImpl()
           
 
Method Summary
 double getNodeSample(long isiID, java.lang.String dataItem)
           
 SensorDataPacket getPacketFromNode(long isiID)
           
 SensorDataPacket getPacketFromStream(long isiID)
           
 DevicePacketStream getPacketStream()
           
 java.util.Vector getParsedPacket(long isiID)
           
 double getPortalSample(long isiID, java.lang.String dataItem)
           
 double pickANumber()
          Test code
 void setApplet(boolean isApplet)
           
 void setDataItem(java.lang.String item)
           
 void setDeviceID(long id)
           
 void setNode(java.lang.String node)
           
 void setPort(java.lang.String port)
           
 void setPortal(java.lang.String portal)
           
 
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

_log4j

protected static org.apache.log4j.Logger _log4j
Log4j logger


_nodeURL

protected java.lang.String _nodeURL

_portalURL

protected java.lang.String _portalURL

_commPortName

protected java.lang.String _commPortName

_dataItem

protected java.lang.String _dataItem

_isRunning

protected boolean _isRunning

_isPaused

protected boolean _isPaused

_ostream

protected java.io.OutputStream _ostream

_deviceID

protected long _deviceID

_isApplet

protected boolean _isApplet

_parserFactory

protected ParserFactory _parserFactory

_packetStream

protected DevicePacketStream _packetStream

_portalProxy

protected PortalProxy _portalProxy
Constructor Detail

SamplerImpl

public SamplerImpl()
            throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException
Method Detail

pickANumber

public double pickANumber()
                   throws java.rmi.RemoteException
Test code

Specified by:
pickANumber in interface Sampler
Throws:
java.rmi.RemoteException

setApplet

public void setApplet(boolean isApplet)
Specified by:
setApplet in interface Sampler

setNode

public void setNode(java.lang.String node)
             throws java.rmi.RemoteException
Specified by:
setNode in interface Sampler
Throws:
java.rmi.RemoteException

setPortal

public void setPortal(java.lang.String portal)
               throws java.rmi.RemoteException
Specified by:
setPortal in interface Sampler
Throws:
java.rmi.RemoteException

setPort

public void setPort(java.lang.String port)
             throws java.rmi.RemoteException
Specified by:
setPort in interface Sampler
Throws:
java.rmi.RemoteException

setDeviceID

public void setDeviceID(long id)
                 throws java.rmi.RemoteException
Specified by:
setDeviceID in interface Sampler
Throws:
java.rmi.RemoteException

setDataItem

public void setDataItem(java.lang.String item)
                 throws java.rmi.RemoteException
Specified by:
setDataItem in interface Sampler
Throws:
java.rmi.RemoteException

getNodeSample

public double getNodeSample(long isiID,
                            java.lang.String dataItem)
                     throws java.rmi.RemoteException
Specified by:
getNodeSample in interface Sampler
Throws:
java.rmi.RemoteException

getPortalSample

public double getPortalSample(long isiID,
                              java.lang.String dataItem)
                       throws java.rmi.RemoteException
Specified by:
getPortalSample in interface Sampler
Throws:
java.rmi.RemoteException

getParsedPacket

public java.util.Vector getParsedPacket(long isiID)
                                 throws java.rmi.RemoteException
Specified by:
getParsedPacket in interface Sampler
Throws:
java.rmi.RemoteException

getPacketStream

public DevicePacketStream getPacketStream()

getPacketFromStream

public SensorDataPacket getPacketFromStream(long isiID)

getPacketFromNode

public SensorDataPacket getPacketFromNode(long isiID)


Copyright © 2003 MBARI.

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.