Real-Time Java AOCS Framework v1.0 API Specification

JbedSmmApplication.Utilities
Class JbedSmmConnectionInstaller

java.lang.Object
  |
  +--RtjAocsFramework.BasicObjects.RootObject
        |
        +--JbedSmmApplication.Utilities.JbedSmmConnectionInstaller

public class JbedSmmConnectionInstaller
extends RootObject

JbedSmmConnectionInstaller is a component that setup connection between a client and server (a ground station and embedded application).

Version:
1.0
Author:
V. Cechticky/A. Pasetti (ETH-Zurich)

Constructor Summary
JbedSmmConnectionInstaller()
          Constructs a new object establishing connection between a client and server.
 
Method Summary
 BufferedReader getBufferedReader()
          Returns an initialized BufferedReader object.
 InputStream getInputStream()
          Returns an initialized InputStream object.
 PrintWriter getPrintWriter()
          Returns an initialized PrintWriter object.
 boolean initialize()
          The initialization method.
 
Methods inherited from class RtjAocsFramework.BasicObjects.RootObject
getClassId, getInstanceId, setClassId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JbedSmmConnectionInstaller

public JbedSmmConnectionInstaller()
Constructs a new object establishing connection between a client and server.

Method Detail

initialize

public boolean initialize()
The initialization method. Can be called only once. Set up the socket that is used for sending TM data and receiving TC data. This method performs blocking operation that will suspend the executing thread until matching operations are performed at the other end of the socket. This method returns true if the socket could be successfully established.

After the socket connection is set up, the configuration of the components that send out TM data and receive TC data is completed.


getPrintWriter

public PrintWriter getPrintWriter()
Returns an initialized PrintWriter object.

Returns:
the PrintWriter object

getBufferedReader

public BufferedReader getBufferedReader()
Returns an initialized BufferedReader object.

Returns:
the BufferedReader object

getInputStream

public InputStream getInputStream()
Returns an initialized InputStream object.

Returns:
the InputStream object

Real-Time Java AOCS Framework v1.0 API Specification

Real-Time Java AOCS Framework project home page

Automatic Control Laboratory, ETH Zuerich
Physikstrasse 3
CH-8092 Zuerich, Switzerland