Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.mitre.cvw
Class AVController  view AVController download AVController.java

java.lang.Object
  extended byorg.mitre.cvw.AVController

public class AVController
extends java.lang.Object

CVW Audio and Video Tools controller.

Version:
1

Field Summary
private static AVController _instance
           
(package private)  java.lang.Process audioHandle
           
(package private)  java.lang.String audioPort
           
(package private)  java.lang.String audioProgram
           
(package private)  java.lang.String avFileName
           
private static int count
           
(package private)  CVWRoom currentRoom
           
(package private)  CVWUser currentUser
           
(package private)  CVWPreferences cvwPrefs
           
(package private)  CVWCoordinator mainFrame
           
(package private)  java.lang.String mcastAddress
           
(package private)  NPDocServer npds
           
(package private)  java.lang.Process videoHandle
           
(package private)  java.lang.String videoPort
           
(package private)  java.lang.String videoProgram
           
 
Constructor Summary
protected AVController()
          Constructor
 
Method Summary
 boolean audioActive()
          Checks to see if the audio tool (vat) is running.
 void audioCommand()
          Function called for the audio menu and button
 boolean checkAudio()
          Checks the existence of an audio tool.
 boolean checkAV()
          Preliminary checks to see if multicast tools can be run.
 boolean checkVideo()
          Checks for the existence of a video tool (vic)
 void exportAV(java.lang.String room)
          Writes the server, current user, room, and av info to a file external to CVW.
static AVController getInstance()
          Get the current AVController instance or create one if necessary.
 java.lang.String getServerAVFileName()
          Returns a file name based on CVW server name and located in the current user directory.
 java.lang.String getTCLFile(java.lang.String tcl)
          Finds the tcl parameters file (vic.tcl or vat.tcl)
 java.lang.String getVideoMCastAddress()
          Determines the video multicast address.
 void logout()
          audio/video routines ********************
static void playAudio(java.lang.String fileName)
          Play an audio sound using AudioFilePlayer
 void setAV(java.lang.String mcast)
          Sets the multicast address parameters
 void setAV(java.lang.String mcast, java.lang.String aPort, java.lang.String vPort, java.lang.String rONum)
          Sets the multicast address parameters
 void setPrefs(CVWPreferences prefs)
          Sets the preferences
 void setVideoMaxBandwidth(java.lang.String max)
          Sets the video bandwidth if set in preferences
 java.lang.Process startAudio()
          Starts the audio tool (vat) with a multicast address
 java.lang.Process startAudio(boolean room, java.lang.String title, java.lang.String user, java.lang.String ipAddress, java.lang.String port)
          Starts the audio tool (vat)
 java.lang.Process startAudio(PhoneConversation phoneConv)
          Starts the audio tool (vat) point-to-point
 void startVideo()
          Starts video tool after some initial checks.
 void stopAudio()
          Will stop the audio tool and reset the toolbar button and menu to reflect that audio is not active
 void stopVideo()
          Stops the video tool and reset the toolbar button and menu to reflect that audio is not active
 boolean videoActive()
          Check to see if video tool (vic) is active
 void videoCommand()
          Function called for the video menu and button
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_instance

private static AVController _instance

count

private static int count

mcastAddress

java.lang.String mcastAddress

audioProgram

java.lang.String audioProgram

audioHandle

java.lang.Process audioHandle

audioPort

java.lang.String audioPort

videoProgram

java.lang.String videoProgram

videoHandle

java.lang.Process videoHandle

videoPort

java.lang.String videoPort

currentRoom

CVWRoom currentRoom

currentUser

CVWUser currentUser

cvwPrefs

CVWPreferences cvwPrefs

mainFrame

CVWCoordinator mainFrame

npds

NPDocServer npds

avFileName

java.lang.String avFileName
Constructor Detail

AVController

protected AVController()
Constructor

Method Detail

getInstance

public static AVController getInstance()
Get the current AVController instance or create one if necessary.


playAudio

public static void playAudio(java.lang.String fileName)
Play an audio sound using AudioFilePlayer


setPrefs

public void setPrefs(CVWPreferences prefs)
Sets the preferences


audioActive

public boolean audioActive()
Checks to see if the audio tool (vat) is running.


stopAudio

public void stopAudio()
Will stop the audio tool and reset the toolbar button and menu to reflect that audio is not active


startAudio

public java.lang.Process startAudio()
Starts the audio tool (vat) with a multicast address


startAudio

public java.lang.Process startAudio(PhoneConversation phoneConv)
Starts the audio tool (vat) point-to-point


startAudio

public java.lang.Process startAudio(boolean room,
                                    java.lang.String title,
                                    java.lang.String user,
                                    java.lang.String ipAddress,
                                    java.lang.String port)
Starts the audio tool (vat)


checkAudio

public boolean checkAudio()
Checks the existence of an audio tool.


stopVideo

public void stopVideo()
Stops the video tool and reset the toolbar button and menu to reflect that audio is not active


videoActive

public boolean videoActive()
Check to see if video tool (vic) is active


startVideo

public void startVideo()
Starts video tool after some initial checks.


checkVideo

public boolean checkVideo()
Checks for the existence of a video tool (vic)


getVideoMCastAddress

public java.lang.String getVideoMCastAddress()
Determines the video multicast address. The address is calculated by adding 1 to the last octet of the audio multicast address


setVideoMaxBandwidth

public void setVideoMaxBandwidth(java.lang.String max)
Sets the video bandwidth if set in preferences


logout

public void logout()
audio/video routines ********************


checkAV

public boolean checkAV()
Preliminary checks to see if multicast tools can be run.


setAV

public void setAV(java.lang.String mcast,
                  java.lang.String aPort,
                  java.lang.String vPort,
                  java.lang.String rONum)
Sets the multicast address parameters


exportAV

public void exportAV(java.lang.String room)
Writes the server, current user, room, and av info to a file external to CVW.
MCP receive cvw-av-mcast-address


getServerAVFileName

public java.lang.String getServerAVFileName()
Returns a file name based on CVW server name and located in the current user directory.


setAV

public void setAV(java.lang.String mcast)
Sets the multicast address parameters


getTCLFile

public java.lang.String getTCLFile(java.lang.String tcl)
Finds the tcl parameters file (vic.tcl or vat.tcl)


audioCommand

public void audioCommand()
Function called for the audio menu and button


videoCommand

public void videoCommand()
Function called for the video menu and button