faa.tg.dsr
Class DsrDisplay

java.lang.Object
  extended by faa.tg.dsr.DsrDisplay

public class DsrDisplay
extends java.lang.Object

 DsrDisplay represents the all the attributes of the display.  Most of the 
 attributes should be set and changed through the DsrManager.
 
 See the source:  DsrDisplay.java 
 

Version:
$Id: DsrDisplay.java,v 3.1 2006/03/14 15:56:01 samf Exp $
Author:
Lonnie Souder, ACB-860/Titan

Field Summary
static java.lang.Integer A
           
private  java.lang.Integer appid
           
private  Connection connection
           
static java.lang.String CVS_VERSION_ID
          The CVS Version ID
static java.lang.Integer D
           
private  DsrListener dl
           
private  java.io.DataOutputStream dos
           
(package private) static java.lang.String eol
           
private  Host host
           
private  java.net.InetAddress inetaddress
           
private  java.lang.String name
           
static java.lang.Integer R
           
private  java.lang.Integer sector
           
 
Constructor Summary
DsrDisplay(java.lang.String aName, Host aHost)
           
DsrDisplay(java.lang.String aName, Host aHost, java.lang.Integer aSector)
           
 
Method Summary
 void closeConnection()
          Close the socket connection and cleans up
 java.lang.Integer getAppId()
          Returns the appid in an Integer object
 Host getHost()
          Returns the DsrDisplays host object
 java.net.InetAddress getInetAddr()
          Returns the DsrDisplays host
 java.io.InputStream getInputStream()
           
 java.lang.String getName()
          Returns the name of the DsrDisplay
 java.io.DataOutputStream getOutput()
          Returns the output stream for the DsrDisplay
 java.lang.Integer getSector()
          Returns the sector in an Integer object
 boolean isAppId(java.lang.Integer aAppId)
          Checks the DsrDisplay's application id against the given application id.
 boolean isConfigured()
          returns true if a sector is assigned
 boolean isConnected()
          returns true when an application is connected
 boolean isRSide()
           
 boolean isSector(java.lang.Integer aSector)
          Checks the DsrDisplay's sector against the given sector
 void setAppId(java.lang.Integer integer)
           
 void setConnection(Connection aC)
          Set the socket connection for this DsrDisplay
 void setOutput(java.io.DataOutputStream stream)
          Can set the output stream althought I don't think should be done
 void setSector(java.lang.Integer integer)
           
 void startDsrListener(Jliu aJliu)
          Starts the DsrListener thread
 void stopDsrListener()
          Stops the listener thread
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CVS_VERSION_ID

public static final java.lang.String CVS_VERSION_ID
The CVS Version ID

See Also:
Constant Field Values

host

private Host host

name

private java.lang.String name

sector

private java.lang.Integer sector

appid

private java.lang.Integer appid

R

public static final java.lang.Integer R

D

public static final java.lang.Integer D

A

public static final java.lang.Integer A

dos

private java.io.DataOutputStream dos

connection

private Connection connection

inetaddress

private java.net.InetAddress inetaddress

dl

private DsrListener dl

eol

static java.lang.String eol
Constructor Detail

DsrDisplay

public DsrDisplay(java.lang.String aName,
                  Host aHost)
           throws java.net.UnknownHostException
Throws:
java.net.UnknownHostException

DsrDisplay

public DsrDisplay(java.lang.String aName,
                  Host aHost,
                  java.lang.Integer aSector)
           throws java.net.UnknownHostException
Throws:
java.net.UnknownHostException
Method Detail

isConnected

public boolean isConnected()
returns true when an application is connected

Returns:

isConfigured

public boolean isConfigured()
returns true if a sector is assigned

Returns:

getOutput

public java.io.DataOutputStream getOutput()
Returns the output stream for the DsrDisplay

Returns:
dos can be null

getHost

public Host getHost()
Returns the DsrDisplays host object

Returns:
host is never null;

getInetAddr

public java.net.InetAddress getInetAddr()
Returns the DsrDisplays host

Returns:
never null

getName

public java.lang.String getName()
Returns the name of the DsrDisplay

Returns:
name is a string

getSector

public java.lang.Integer getSector()
Returns the sector in an Integer object

Returns:
sector can be null

getAppId

public java.lang.Integer getAppId()
Returns the appid in an Integer object

Returns:
sector can be null

isSector

public boolean isSector(java.lang.Integer aSector)
Checks the DsrDisplay's sector against the given sector

Parameters:
aSector - any Integer object, accepts nulls
Returns:
true or false

isAppId

public boolean isAppId(java.lang.Integer aAppId)
Checks the DsrDisplay's application id against the given application id.

Parameters:
aAppId - any Integer object, accepts nulls
Returns:
true or false

setConnection

public void setConnection(Connection aC)
Set the socket connection for this DsrDisplay

Parameters:
aC -

startDsrListener

public void startDsrListener(Jliu aJliu)
Starts the DsrListener thread

Parameters:
aJliu -

setOutput

public void setOutput(java.io.DataOutputStream stream)
Can set the output stream althought I don't think should be done

Parameters:
stream -

setSector

public void setSector(java.lang.Integer integer)
Parameters:
integer -

setAppId

public void setAppId(java.lang.Integer integer)
Parameters:
integer -

closeConnection

public void closeConnection()
Close the socket connection and cleans up


stopDsrListener

public void stopDsrListener()
Stops the listener thread


isRSide

public boolean isRSide()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getInputStream

public java.io.InputStream getInputStream()