|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfaa.tg.dsr.DsrDisplay
public class DsrDisplay
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
| 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 |
|---|
public static final java.lang.String CVS_VERSION_ID
private Host host
private java.lang.String name
private java.lang.Integer sector
private java.lang.Integer appid
public static final java.lang.Integer R
public static final java.lang.Integer D
public static final java.lang.Integer A
private java.io.DataOutputStream dos
private Connection connection
private java.net.InetAddress inetaddress
private DsrListener dl
static java.lang.String eol
| Constructor Detail |
|---|
public DsrDisplay(java.lang.String aName,
Host aHost)
throws java.net.UnknownHostException
java.net.UnknownHostException
public DsrDisplay(java.lang.String aName,
Host aHost,
java.lang.Integer aSector)
throws java.net.UnknownHostException
java.net.UnknownHostException| Method Detail |
|---|
public boolean isConnected()
public boolean isConfigured()
public java.io.DataOutputStream getOutput()
public Host getHost()
public java.net.InetAddress getInetAddr()
public java.lang.String getName()
public java.lang.Integer getSector()
public java.lang.Integer getAppId()
public boolean isSector(java.lang.Integer aSector)
aSector - any Integer object, accepts nulls
public boolean isAppId(java.lang.Integer aAppId)
aAppId - any Integer object, accepts nulls
public void setConnection(Connection aC)
aC - public void startDsrListener(Jliu aJliu)
aJliu - public void setOutput(java.io.DataOutputStream stream)
stream - public void setSector(java.lang.Integer integer)
integer - public void setAppId(java.lang.Integer integer)
integer - public void closeConnection()
public void stopDsrListener()
public boolean isRSide()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.io.InputStream getInputStream()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||