#!/bin/csh -f

# THIS SCRIPT IS USED TO START FXC_COLLABORATE FROM AN ICON OR TERMINAL WINDOW
#
# Description of parameter fields:
#
# -Xms128m                        minimum java memory allocation (128Megabyte)
# -Xmx512m                        maximum java memory allocation (512Megabytes
# -Dfxc.transceiver.hostaddress   ip address of this client
# -Dfxc.home                      environment variable for top directory path (i.e. preceding fsl/main)
# -Dfxc.transceiver.receiverport  port number to be used by this client (e.g. 1100) - optional
# -Dfxc.transceiver.sockettimeout defines the time delay after which the client aborts the connection
# -Dfxc.synch.files               location and name of file used to synchronize client with server
# -Dfxc.audiochatmode             telephony option for Linux ("talkonly" or "listenonly").
# -Dfxa.data                      location for storing AWIPS/DGM products (e.g. /data/fxa)
# -Dfxc.animation                 animation option ("thread" or "timer")
#
# NOTE: Most system properties (all but fxc.home) may be specified within the file
# fsl/data/config/FXCSystemProperties.txt. See fsl/main.FXC.java for more detail.

# Make the current directory the default directory
set dir=`dirname $0`
if ( "$dir" != "." ) then
   cd $dir
endif

# Set FXC system environment
source ./fxcenvirons.csh

# Start sound process
# The starting of the makeSound process should be placed AFTER sourcing the
# fxcenvirons.csh file. This is so the PATH environment variable has been 
# set to include the FXC/fsl/linux directory in order to run the sound process.

#echo "Starting sound process:"
#makeSound &


# ------------------------------------------------
# Comment and Uncomment the desired configuration.
# Default uncomment is set to ISB.
# ------------------------------------------------

# ASDAD configuration
# -------------------
#java -Xms256m -Xmx512m -Dfxc.home=$FXC_HOME -Dfxc.localization=$FXA_LOCAL_SITE -Dfxc.transceiver.hostaddress=222.22.22.22 -Dfxc.transceiver.receiverport=1126 fsl.main.FXC
#java -Xms512m -Xmx512m -Dfxc.home=$FXC_HOME -Dfxc.localization=$FXA_LOCAL_SITE -Dfxa.data=$FXA_DATA -Dfxc.transceiver.receiverport=1126 -Dfxc.transceiver.sockettimeout=60 fsl.main.FXC
#java -Xms512m -Xmx512m -Dfxc.home=$FXC_HOME -Dfxc.localization=$FXA_LOCAL_SITE -Dfxa.data=$FXA_DATA -Dfxc.transceiver.receiverport=1126 fsl.main.FXC
#java -Xms512m -Xmx512m -Dfxc.home=$FXC_HOME -Dfxc.localization=$FXA_LOCAL_SITE -Dfxc.transceiver.receiverport=1126 fsl.main.FXC

# ISB configuration
# -----------------
#java -Xms256m -Xmx512m -Dfxc.home=$FXC_HOME -Dfxc.localization=$FXA_LOCAL_SITE -Dfxc.transceiver.hostaddress=137.75.58.76 -Dfxc.transceiver.receiverport=1126 fsl.main.FXC
#java -Xms512m -Xmx512m -Dfxc.home=$FXC_HOME -Dfxc.localization=$FXA_LOCAL_SITE -Dfxa.data=$FXA_DATA -Dfxc.transceiver.receiverport=1126 -Dfxc.transceiver.sockettimeout=60 fsl.main.FXC
#java -Xms512m -Xmx512m -Dfxc.home=$FXC_HOME -Dfxc.localization=$FXA_LOCAL_SITE -Dfxc.transceiver.receiverport=1126 -Dfxc.log.file=bug,problem,usage -Dfxc.log.individual=usage fsl.main.FXC

java -Xms512m -Xmx512m -Dfxc.home=$FXC_HOME -Dfxc.localization=$FXA_LOCAL_SITE -Dfxa.data=$FXA_DATA -Dfxc.transceiver.receiverport=1126 fsl.main.FXC

#makeSound stop