edu.wisc.ssec.mcidasv.data
Class McIdasXInfo

java.lang.Object
  extended by edu.wisc.ssec.mcidasv.data.McIdasXInfo

public class McIdasXInfo
extends Object

Class McIdasXInfo Holds the state of the McIDAS-X session on the other end of the bridge


Field Summary
private  String hostString
           
private  String keyString
           
private  String portString
           
private  String versionString
          Conduit protocol info
 
Constructor Summary
McIdasXInfo()
          Constructor
McIdasXInfo(McIdasXInfo that)
          Copy constructor
McIdasXInfo(String host, String port, String key)
          Constructor
 
Method Summary
 DataInputStream getCommandInputStream(String commandLine)
          Get the command request DataInputStream.
 DataInputStream getCommandInputStream(String commandLine, int frame)
          Get the command request DataInputStream.
private  String getCommandRequest(String commandLine)
          Get the command request string.
private  String getCommandRequest(String commandLine, int frame)
          Get the command request string.
 int getCurrentFrame()
          Get the current frame in McIDAS-X.
 DataInputStream getDataInputStream(Integer frame)
          Get the data request DataInputStream.
private  String getDataRequest(Integer frame)
          Get the data request string.
 DataInputStream getFileInputStream(String filename)
          Get the file request DataInputStream.
private  String getFileRequest(String filename)
          Get the file request string.
 List getFrameNumbers()
          Get the list of frame numbers in McIDAS-X.
private  String getFrameRequest()
          Get the frame request string.
private  String getFramesRequest()
          Get the frames request string.
 DataInputStream getGIFInputStream(Integer frame)
          Get the GIF request DataInputStream.
private  String getGIFRequest(Integer frame)
          Get the GIF request string.
 DataInputStream getGraphicsInputStream(Integer frame)
          Get the graphics request DataInputStream.
private  String getGraphicsRequest(Integer frame)
          Get the graphics request string.
 String getHostString()
          Get the hostString property.
 String getKeyString()
          Get the keyString property.
 int getNumberOfFrames()
          Get the number of frames in McIDAS-X.
 String getPortString()
          Get the portString property.
private  DataInputStream getXInputStream(String newRequest)
          Get a DataInputStream from a given request String.
 void setHostString(String newValue)
          Set the hostString property.
 void setKeyString(String newValue)
          Set the keyString property.
 void setPortString(String newValue)
          Set the portString property.
 String toString()
          Get a String representation of this object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

versionString

private String versionString
Conduit protocol info


hostString

private String hostString

portString

private String portString

keyString

private String keyString
Constructor Detail

McIdasXInfo

public McIdasXInfo()
Constructor


McIdasXInfo

public McIdasXInfo(McIdasXInfo that)
Copy constructor

Parameters:
that - The McIdasXInfo to copy

McIdasXInfo

public McIdasXInfo(String host,
                   String port,
                   String key)
Constructor

Method Detail

getHostString

public String getHostString()
Get the hostString property.

Returns:
The hostString property.

getPortString

public String getPortString()
Get the portString property.

Returns:
The portString property.

getKeyString

public String getKeyString()
Get the keyString property.

Returns:
The keyString property.

setHostString

public void setHostString(String newValue)
Set the hostString property.

Parameters:
newValue - The new vaue for the hostString property.

setPortString

public void setPortString(String newValue)
Set the portString property.

Parameters:
newValue - The new vaue for the portString property.

setKeyString

public void setKeyString(String newValue)
Set the keyString property.

Parameters:
newValue - The new vaue for the keyString property.

getFrameRequest

private String getFrameRequest()
Get the frame request string.

Returns:
The frame request string.

getFramesRequest

private String getFramesRequest()
Get the frames request string.

Returns:
The frames request string.

getFileRequest

private String getFileRequest(String filename)
Get the file request string.

Returns:
The file request string.

getFileInputStream

public DataInputStream getFileInputStream(String filename)
Get the file request DataInputStream.

Returns:
The file request DataInputStream.

getDataRequest

private String getDataRequest(Integer frame)
Get the data request string.

Returns:
The data request string.

getDataInputStream

public DataInputStream getDataInputStream(Integer frame)
Get the data request DataInputStream.

Returns:
The data request DataInputStream.

getGraphicsRequest

private String getGraphicsRequest(Integer frame)
Get the graphics request string.

Returns:
The graphics request string.

getGraphicsInputStream

public DataInputStream getGraphicsInputStream(Integer frame)
Get the graphics request DataInputStream.

Returns:
The graphics request DataInputStream.

getCommandRequest

private String getCommandRequest(String commandLine)
Get the command request string.

Returns:
The command request string.

getCommandRequest

private String getCommandRequest(String commandLine,
                                 int frame)
Get the command request string.

Returns:
The command request string.

getCommandInputStream

public DataInputStream getCommandInputStream(String commandLine)
Get the command request DataInputStream.

Returns:
The command request DataInputStream.

getCommandInputStream

public DataInputStream getCommandInputStream(String commandLine,
                                             int frame)
Get the command request DataInputStream.

Returns:
The command request DataInputStream.

getGIFRequest

private String getGIFRequest(Integer frame)
Get the GIF request string.

Returns:
The GIF request string.

getGIFInputStream

public DataInputStream getGIFInputStream(Integer frame)
Get the GIF request DataInputStream.

Returns:
The GIF request DataInputStream.

toString

public String toString()
Get a String representation of this object

Overrides:
toString in class Object
Returns:
a string representation

getXInputStream

private DataInputStream getXInputStream(String newRequest)
Get a DataInputStream from a given request String.

Returns:
a DataInputStream

getCurrentFrame

public int getCurrentFrame()
Get the current frame in McIDAS-X.

Returns:
The current frame in McIDAS-X.

getNumberOfFrames

public int getNumberOfFrames()
Get the number of frames in McIDAS-X.

Returns:
The number of frames in McIDAS-X.

getFrameNumbers

public List getFrameNumbers()
Get the list of frame numbers in McIDAS-X.

Returns:
The list of frame numbers in McIDAS-X.