package iDSS.utils;


import javax.swing.*;




public class IDSSAppConstants {

    public static final String programTitle = "Framework for an Internet-based Decision Support System for Coastal Management";

    public static boolean debug = true;

    //This is for looking up EJB
    public static final String serverURL = "130.159.78.177:1050";

    public static final String modelSetupDigitalElevationModel = "Digital Elevation Model";
    public static final String modelSetupLandcoverTypes = "Landcover Types";
    public static final String modelSetupTidalData = "Tidal Data";
    public static final String modelSetupIsostaticMovement = "Isostatic Movement";
    public static final String modelSetupVegetationModels = "Vegetation Models";
    public static final String modelSetupSlrScenario = "SLR Scenario";

    public static final String modelSetupDemLocal = "modelSetupDemLocal";
    public static final String modelSetupDemRemote = "modelSetupDemRemote";

    public static final String modelSetupLandcoverLocal = "modelSetupLandcoverLocal";
    public static final String modelSetupLandcoverRemote = "modelSetupLandcoverRemote";

    public static final String modelSetupTidalDataLocal = "modelSetupTidalDataLocal";
    public static final String modelSetupTidalDataRemote = "modelSetupTidalDataRemote";

    public static final String modelSetupVegetationModelLocal = "modelSetupVegetationModelLocal";
    public static final String modelSetupVegetationModelRemote = "modelSetupVegetationModelRemote";

    public static final String modelSetupIsostaticLocal = "modelSetupIsostaticLocal";

    public static final String modelSetupSlrLocal = "modelSetupSlrLocal";
    public static final String modelSetupSlrRemote = "modelSetupSlrRemote";

    public static final String modelSetupStatus = "modelSetupStatus";
    public static final String dataManager = "dataManager";

    public static final String tempFilePrefix = "xxx";
    public static final String tempFileSufix = ".tmp";
    public static final String tempImgFileSufix = ".png";
    public static final String tempDir = "c:\\iDSSTemp";
    public static final String smDir = "c:\\iDSSTempSM";
    //public static final String imgDir = "e:\\j2sdkee1.2.1\\public_html\\idss\\img";
    public static final String imgDir = "c:\\j2sdkee1.2.1\\public_html\\idss\\img";
    public static final int noDataValue = -9999;
    public static final int MAX_RECURSION_LEVEL = 3;
    public static final int MINIMUM_IMAGE_SIZE_FOR_ANIM = 250;
    public static final int MINIMUM_IMAGE_SIZE = 250;




    //Event names

    public static final String internalFrameClosing = "internalFrameClosing";
    public static final String addToModelView = "addToModelView";
    public static final String removeFromModelView = "removeFromModelView";
    public static final String removeAllFromModelView = "removeAllFromModelView";
    public static final String addGridToModel = "addGridToModel";
    public static final String setTidalModel = "setTidalModel";
    public static final String setAllTidalModels = "setAllTidalModels";
    public static final String setIsostaticMovement = "setIsostaticMovement";
    public static final String drawGraph = "drawGraph";
    public static final String setSurvivalModel = "setSurvivalModel";
    public static final String setAllSurvivalModels = "setAllSurvivalModels";
    public static final String setSLRScenario = "setSLRScenario";
    public static final String proceedWithSimulation = "proceedWithSimulation";
    public static final String createSimNode = "createSimNode";
    public static final String setSimulationStatus = "setSimulationStatus";
    public static final String notifySimulationEnd = "notifySimulationEnd";

    public static final String noRowsSelected = "noRowsSelected";
    public static final String oneRowSelected = "oneRowSelected";
    public static final String noColsSelected = "noColsSelected";
    public static final String oneColSelected = "oneColSelected";

    public static final String GridManagerRemoveFromGrids = "GridManagerRemoveFromGrids";
    public static final String GridManagerAddToGrids = "GridManagerAddToGrids";
    public static final String GridManagerGridDisp = "GridManagerGridDisp";
    public static final String GridManagerGridDesc = "GridManagerGridDesc";
    public static final String GridManagerImgDisp = "GridManagerImgDisp";

    public static final String LCGridManagerRemoveFromGrids = "LCGridManagerRemoveFromGrids";
    public static final String LCGridManagerAddToGrids = "LCGridManagerAddToGrids";
    public static final String LCGridManagerGridDisp = "LCGridManagerGridDisp";
    public static final String LCGridManagerGridDesc = "LCGridManagerGridDesc";
    public static final String LCGridManagerImgDisp = "LCGridManagerImgDisp";

    public static final String showMessage = "showMessage";
    public static final String disposeData = "disposeData";

    public static final String tidalData = "tidalData";

    public static final String dataLocationRemote = "Remote";
    public static final String dataLocationLocal = "Local";

    public static final String setDemStatus = "setDemStatus";
    public static final String setLcGridStatus = "setLcGridStatus";
    public static final String setTidalModelsStatus = "setTidalModelsStatus";
    public static final String setIsoMovStatus = "setIsoMovStatus";
    public static final String setVegModStatus = "setVegModStatus";
    public static final String setSlrScenStatus = "setSlrScenStatus";

    public static final String setStatusBean = "setStatusBean";
    public static final String setClassTypes = "setClassTypes";



    //Summary grid parameters

    public static final String totalFloodingTime = "totalFloodingTime";
    public static final String totalDryTime = "totalDryTime";
    public static final String highestDepthOfFlooding = "highestDepthOfFlooding";
    public static final String longestFloodingTime = "longestFloodingTime";
    public static final String longestDryTime = "longestDryTime";
    public static final String totalCriticalFloodingTime = "totalCriticalFloodingTime";
    public static final String longestCriticalFloodingTime = "longestCriticalFloodingTime";
    public static final String minimumProbabilityOfSurvival = "minimumProbabilityOfSurvival";





    //Button texts and commands

    public static final String drawButtonText = "Draw";
    public static final String drawButtonCommand = "draw";

    public static final String newButtonText = "New";
    public static final String newButtonCommand = "new";

    public static final String runButtonText = "Run";
    public static final String runButtonCommand = "run";

    public static final String selectButtonText = "Select";
    public static final String selectButtonCommand = "select";

    public static final String selectAllButtonText = "Select All";
    public static final String selectAllButtonCommand = "selectAll";

    public static final String disposeButtonText = "Dispose";
    public static final String disposeButtonCommand = "dispose";

    public static final String pickButtonText = "From file";
    public static final String pickButtonCommand = "pickFromFile";

    public static final String pickServerButtonText = "From server";
    public static final String pickServerButtonCommand = "pickFromServer";

    public static final String pickAllButtonText = "Pick All from File";
    public static final String pickAllButtonCommand = "pickAllFromFile";

    public static final String saveAllButtonText = "Save All to File";
    public static final String saveAllButtonCommand = "saveAllToFile";

    public static final String saveServerButtonText = "To server";
    public static final String saveServerButtonCommand = "toServer";

    public static final String describeButtonText = "Describe";
    public static final String describeButtonCommand = "describe";

    public static final String detailsButtonText = "Details";
    public static final String detailsButtonCommand = "details";

    public static final String defineButtonText = "Define";
    public static final String defineButtonCommand = "define";

    public static final String acceptButtonText = "Accept";
    public static final String acceptButtonCommand = "accept";

    public static final String readStoryLineButtonText = "Read Storyline";
    public static final String readStoryLineButtonCommand = "readStoryline";

    public static final String getScenarioButtonText = "GetScenario";
    public static final String getScenarioButtonCommand = "getScenario";

    public static final String proceedWithSimButtonText = "Proceed with simulation";
    public static final String proceedWithSimButtonCommand = "proceedWithSimButtonCommand";


    public static final String doneText = "Done";
    public static final String notDoneText = "Not done";

    public static final String viewSummaryGridsButtonText = "Summary Grids";
    public static final String viewFloodGridsButtonText = "Flood Grids";
    public static final String startSimulationButtonText = "Start Sim";

    public static final String viewSummaryGridsButtonCommand = "viewSummaryGridsButtonCommand";
    public static final String viewFloodGridsButtonCommand = "viewFloodGridsButtonCommand";
    public static final String startSimulationButtonCommand = "startSimulationButtonCommand";

    public static final String getStationsButtonText = "Get Stations";
    public static final String getStationsButtonCommand = "getStationsButtonCommand";

    public static final String getDsnButtonText = "Get DSN";
    public static final String getDsnButtonCommand = "getDsnButtonCommand";

    public static final String getDatabaseDriversButtonText = "Get Drivers";
    public static final String getDatabaseDriversButtonCommand = "getDatabaseDriversButtonCommand";

    public static final String getUserSMButtonText = "Get User Defined Models";
    public static final String getUserSMButtonCommand = "getUserSMButtonCommand";


    public static final String fetchDataButtonText = "Fetch Data";
    public static final String fetchDataButtonCommand = "fetchDataButtonCommand";

    public static final String exitButtonText = "Exit";
    public static final String exitButtonCommand = "exitButtonCommand";

    public static final String doItButtonText = "Do it!";
    public static final String doItButtonCommand = "doItButtonCommand";

    public static final String okButtonText = "OK";
    public static final String okButtonCommand = "okButtonCommand";


    //Model data names - hashcodes

    public static final String user = "user";
    public static final String demGridName = "demGridName";
    public static final String lcGridName = "lcGridName";
    public static final String tidalModelsHashtableName = "tidalModelsHashtableName";
    public static final String isostaticMovementHashCode = "isostaticMovementHashCode";
    public static final String slrDataHashCode = "slrDataHashCode";
    public static final String smHashCode = "smHashCode";



    //Model window names
    public static final String modelSetupTreeName = "modelSetupTreeName";
    public static final String modelSetupViewName = "modelSetupViewName";
    public static final String modelSlrListWindow = "IPCC SLR Scenarios";
    public static final String modelSlrDetailWindow = "Scenario Details";
    public static final String modelSetupSimulation = "Simulation";
    public static final int gridTypeDEM = 1;
    public static final int gridTypeLandcov = 2;
    public static final String smListTitle = "Defined Survival Models";
    public static final String tmListTitle = "Defined Tidal Models";
    public static final String simTitle = "Simulation Panel";
    public static final String tabularDisplay = "tabularDisplay";
    public static final String graphicalDisplay = "graphicalDisplay";


    //EJB names

    public static final String gridsBean = "GridsEJB";
    public static final String lcGridsBean = "LCGridsEJB";
    public static final String slrBean = "SLREJB";
    public static final String slrStoryBean = "SLRStoryEJB";
    public static final String slrDataBean = "SLRDataEJB";
    public static final String tidalDataBean = "TidalDataEJB";
    public static final String tidalStationsBean = "TidalStationsEJB";
    public static final String userBean = "UserEJB";


    //Database names
    public static final String tidalDatabaseName = "java:comp/env/jdbc/idss";


    //Identity
    public static final String ip = "130.159.78.177";


    //Server table names
    public static final String gridsTableName = "userGridsTable";
    public static final String lcGridsTableName = "userLcGridsTable";
    public static final String tidalStationsTableName = "tidalStations";



    //Database drivers and DSN properties files
    public static final String configDir = "config";
    //public static final String configDir = "g:\\idssWebPack\\iDSS\\config";
    public static final String databaseDriversFile = "databaseDrivers.prop";
    public static final String dataSourceNamesFile = "dataSourceNames.prop";
    public static final String smModelsFile = "smModels.prop";




    //Message types

    public static final int plainMessage = JOptionPane.PLAIN_MESSAGE;
    public static final int questionMessage = JOptionPane.QUESTION_MESSAGE;
    public static final int warningMessage = JOptionPane.WARNING_MESSAGE;
    public static final int informationMessage = JOptionPane.INFORMATION_MESSAGE;
    public static final int errorMessage = JOptionPane.ERROR_MESSAGE;



    //File upload

    //public static final String uploadDir = "g:\\idssWebClientUploads";
    public static final String uploadDir = "c:\\idssWebClientUploads";


    //Web client constants

    public static final String userGridFileName = "userGridFileName";
    public static final String callingComponent = "callingComponent";

    public static final String imgSrc = "imgSrc";
    public static final String imgWidth = "imgWidth";
    public static final String imgHeight = "imgHeight";
    public static final String imgAltText = "imgAltText";
    public static final String imgVector = "imgVector";
    public static final String image = "image";
    public static final String tableVector = "tableVector";
    public static final String makeTable = "Make table";
    public static final String drawGraphImg = "Draw graph";
    public static final String deviseTidalModel = "Devise tidal model";
    public static final String none = "None";
    public static final String selectTidalModel = "selectTidalModel";
    public static final String selectTMButtonName = "selectTMButtonName";
    public static final String tidalModelsList = "tidalModelsList";
    //public static final String modelSetupHashtableFileName = "e:\\j2sdkee1.2.1\\public_html\\idss\\modelSetupData.ser";
    public static final String modelSetupHashtableFileName = "c:\\j2sdkee1.2.1\\public_html\\idss\\modelSetupData.ser";
    public static final String modelSetupHashtableUrlName = "http://130.159.78.177:8000/idss/modelSetupData.ser";
    public static final String modelSetupHashtableUrlParam = "modelSetupHashtableUrlParam";




}//public interface IDSSAppConstants
