| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmil.navy.nps.dis.BehaviorStreamBufferInfo
BehaviorStreamBufferInfo is an object that contains configuration data about a BehaviorStreamBuffer. This data includes information such as whether the data that is coming in is RTP enabled, sources of further information, such as web sites, etc.
The object uses a dual scheme for creating objects. In effect this is an object with a unique serialization scheme, made unique because we want the serialized format to comply with our wishes. ("Oh, Behave!" --Austin Powers). We write out our various state variables as attribute-value pairs, delimited by spaces. we can create a new object from such a String object. Or we can create the string object from the data in the object.
Significant attribute-value pairs as of this writing:
rtpEnabled=true|false. If true, the PDUs in this stream have RTP turned on, and so therefore have a bunch of binary data prepended to them.
worldSite=url. There can be zero or more worldSite attribute-value pairs. This describes a URL that contains information about the virtual world used to create this PDU stream.
| Field Summary | |
static int | 
CURRENT_VERSION
 | 
static java.lang.String | 
RTP_ENABLED
 | 
static java.lang.String | 
URL
 | 
static java.lang.String | 
VERSION
 | 
| Constructor Summary | |
BehaviorStreamBufferInfo()
Plain, no-args constructor  | 
|
BehaviorStreamBufferInfo(boolean pRtpEnabled)
 | 
|
BehaviorStreamBufferInfo(boolean pRtpEnabled,
                         java.lang.String[] pURLs)
Constructor, takes the RTP status and an array of strings that describe the world we got this PDU stream from.  | 
|
BehaviorStreamBufferInfo(java.lang.String pConfigString)
Convert a string of attribute-value pairs into a filled out info object.  | 
|
| Method Summary | |
 void | 
addUrl(java.lang.String pURL)
Add a URL to our list of URLs about this stream  | 
 boolean | 
getRtpEnabled()
Get status of RTP for this stream  | 
 java.lang.String[] | 
getUrls()
Returns an array filled with all the URLs we have.  | 
 int | 
getVersion()
Return the version number, which has an effect on what attributes are valid.  | 
 void | 
setRtpEnabled(boolean pEnabled)
is the rtp capability enabled or not?  | 
 java.lang.String | 
toString()
Convert the object to a string.  | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
public static final int CURRENT_VERSION
public static final java.lang.String VERSION
public static final java.lang.String URL
public static final java.lang.String RTP_ENABLED
| Constructor Detail | 
public BehaviorStreamBufferInfo()
public BehaviorStreamBufferInfo(boolean pRtpEnabled)
public BehaviorStreamBufferInfo(boolean pRtpEnabled,
                                java.lang.String[] pURLs)
pRtpEnabled - whether RTP is enabled for this streampURLs - array of strings that describe URLS about this pdu streampublic BehaviorStreamBufferInfo(java.lang.String pConfigString)
| Method Detail | 
public java.lang.String toString()
public void setRtpEnabled(boolean pEnabled)
public boolean getRtpEnabled()
public int getVersion()
public void addUrl(java.lang.String pURL)
public java.lang.String[] getUrls()
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||