Ejemplo n.º 1
0
        public Window1()
        {
            InitializeComponent();

            // Create user data model
            userDataModel = new UserDataModel();
            userInfoGrid.DataContext = userDataModel;

            // Create experiment data model
            experimentDataModel = new ExperimentDataModel();
            experimentNameCB.DataContext = experimentDataModel;

            // Create config data model
            configDataModel = new ConfigDataModel();
            configNameCB.DataContext = configDataModel;
            measureNamesLB.DataContext = configDataModel;
            displayNamesLB.DataContext = configDataModel;
            displayBuilder.ConfigDataModel = configDataModel;
            displayPreview.ConfigDataModel = configDataModel;
            displayControl.ConfigDataModel = configDataModel;
            ConfigDisplayInfoControl.ConfigDataModel = configDataModel;
            displayBuilder.InitConfigDisplayInfo(configDataModel.CurConfigDisplay);


        }
Ejemplo n.º 2
0
 public Barcode(ConfigDisplay configDisplay, ConfigDataModel configDataModel, Dictionary<string, XmlWriter> measureInstXmlMap)
     : base(configDisplay, configDataModel, measureInstXmlMap)
 {
     startList = new List<double>();
     endList = new List<double>();
     operatorNum = new List<double>();
     colorList = new List<int>();
 }
Ejemplo n.º 3
0
 public MultiLevelBowTie(ConfigDisplay configDisplay, ConfigDataModel configDataModel, Dictionary<string, XmlWriter> measureInstXmlMap)
     : base(configDisplay, configDataModel, measureInstXmlMap)
 {
 }
Ejemplo n.º 4
0
 public Bubbles(ConfigDisplay configDisplay, ConfigDataModel configDataModel, Dictionary<string, XmlWriter> measureInstXmlMap)
     : base(configDisplay, configDataModel, measureInstXmlMap)
 {
 }
Ejemplo n.º 5
0
 public StackedHistogram(ConfigDisplay configDisplay, ConfigDataModel configDataModel, Dictionary<string, XmlWriter> measureInstXmlMap)
     : base(configDisplay, configDataModel, measureInstXmlMap)
 {
 }
Ejemplo n.º 6
0
 public StarSpider(ConfigDisplay configDisplay, ConfigDataModel configDataModel, Dictionary<string, XmlWriter> measureInstXmlMap)
     : base(configDisplay, configDataModel, measureInstXmlMap)
 {
     spider.center = new Point(200, 200);
 }
Ejemplo n.º 7
0
        public DashboardVisualization(ConfigDisplay configDisplay, ConfigDataModel configDataModel, Dictionary<string, XmlWriter> measureInstXmlMap)
        {
            if ((configDataModel == null) || (configDisplay == null) || (measureInstXmlMap == null))
            {
                return;
            }

            this.configDataModel = configDataModel;
            this.configDisplay = configDisplay;
            this.measureInstXmlMap = measureInstXmlMap;

            // Initialize Phase to Trigger Map (temporary until read from database)
            phaseTriggerDataList.Add(new PhaseTriggerData { PhaseName = "Executing", TriggerName = "AttackObjectRequestTrigger"});
            phaseTriggerDataList.Add(new PhaseTriggerData { PhaseName = "SA Building", TriggerName = "ClientMeasure_CapabilitySelectedTrigger"});
            phaseTriggerDataList.Add(new PhaseTriggerData { PhaseName = "SA Building", TriggerName = "ClientMeasure_ObjectSelectedTrigger"});
            phaseTriggerDataList.Add(new PhaseTriggerData { PhaseName = "SA Building", TriggerName = "ClientMeasure_ObjectTabSelectedTrigger"});
            phaseTriggerDataList.Add(new PhaseTriggerData { PhaseName = "SA Building", TriggerName = "ClientMeasure_ScreenViewTrigger"});
            phaseTriggerDataList.Add(new PhaseTriggerData { PhaseName = "Executing", TriggerName = "MoveObjectRequestTrigger"});
            phaseTriggerDataList.Add(new PhaseTriggerData { PhaseName = "Planning", TriggerName = "RequestChatRoomCreateTrigger"});
            phaseTriggerDataList.Add(new PhaseTriggerData { PhaseName = "Planning", TriggerName = "RequestCloseChatRoomTrigger"});
            phaseTriggerDataList.Add(new PhaseTriggerData { PhaseName = "Planning", TriggerName = "RequestJoinVoiceChannelTrigger"});
            phaseTriggerDataList.Add(new PhaseTriggerData { PhaseName = "Planning", TriggerName = "RequestLeaveVoiceChannelTrigger"});
            phaseTriggerDataList.Add(new PhaseTriggerData { PhaseName = "Planning", TriggerName = "RequestMuteUserTrigger"});
            phaseTriggerDataList.Add(new PhaseTriggerData { PhaseName = "Planning", TriggerName = "RequestStartedTalkingTrigger"});
            phaseTriggerDataList.Add(new PhaseTriggerData { PhaseName = "Evaluating", TriggerName = "RequestStoppedTalkingTrigger"});
            phaseTriggerDataList.Add(new PhaseTriggerData { PhaseName = "Evaluating", TriggerName = "RequestUnmuteUserTrigger"});
            phaseTriggerDataList.Add(new PhaseTriggerData { PhaseName = "Planning", TriggerName = "RequestWhiteboardRoomCreateTrigger"});
            phaseTriggerDataList.Add(new PhaseTriggerData { PhaseName = "Planning", TriggerName = "StartedTalkingTrigger"});
            phaseTriggerDataList.Add(new PhaseTriggerData { PhaseName = "Evaluating", TriggerName = "StoppedTalkingTrigger"});
            phaseTriggerDataList.Add(new PhaseTriggerData { PhaseName = "Evaluating", TriggerName = "SubplatformDockRequestTrigger"});
            phaseTriggerDataList.Add(new PhaseTriggerData { PhaseName = "Executing", TriggerName = "SubplatformLaunchRequestTrigger"});
            phaseTriggerDataList.Add(new PhaseTriggerData { PhaseName = "Planning", TriggerName = "TextChatRequestTrigger"});
            phaseTriggerDataList.Add(new PhaseTriggerData { PhaseName = "Executing", TriggerName = "TransferObjectRequestTrigger"});
            phaseTriggerDataList.Add(new PhaseTriggerData { PhaseName = "SA Building", TriggerName = "UpdateTagTrigger"});
            phaseTriggerDataList.Add(new PhaseTriggerData { PhaseName = "Executing", TriggerName = "WeaponLaunchRequestTrigger"});
            phaseTriggerDataList.Add(new PhaseTriggerData { PhaseName = "Planning", TriggerName = "WhiteboardClearAllRequestTrigger"});
            phaseTriggerDataList.Add(new PhaseTriggerData { PhaseName = "Planning", TriggerName = "WhiteboardClearRequestTrigger"});
            phaseTriggerDataList.Add(new PhaseTriggerData { PhaseName = "Planning", TriggerName = "WhiteboardLineRequestTrigger"});
            phaseTriggerDataList.Add(new PhaseTriggerData { PhaseName = "SA Building", TriggerName = "WhiteboardSyncScreenViewRequestTrigger"});
            phaseTriggerDataList.Add(new PhaseTriggerData { PhaseName = "SA Building", TriggerName = "WhiteboardUndoRequestTrigger"});

            /* Old List 
            phaseTriggerDataList.Add(new PhaseTriggerData { PhaseName = "Executing", TriggerName = "AttackObjectRequestTrigger"});
            phaseTriggerDataList.Add(new PhaseTriggerData{PhaseName = "SA Building", TriggerName = "ClientMeasure_CapabilitySelectedTrigger"});
            phaseTriggerDataList.Add(new PhaseTriggerData{PhaseName = "SA Building", TriggerName = "ClientMeasure_ObjectSelectedTrigger"});
            phaseTriggerDataList.Add(new PhaseTriggerData{PhaseName = "SA Building", TriggerName = "ClientMeasure_ObjectTabSelectedTrigger"});
            phaseTriggerDataList.Add(new PhaseTriggerData{PhaseName = "SA Building", TriggerName = "ClientMeasure_ScreenViewTrigger"});
            phaseTriggerDataList.Add(new PhaseTriggerData{PhaseName = "Executing", TriggerName = "MoveObjectRequestTrigger"});
            phaseTriggerDataList.Add(new PhaseTriggerData{PhaseName = "Planning", TriggerName = "RequestChatRoomCreateTrigger"});
            phaseTriggerDataList.Add(new PhaseTriggerData{PhaseName = "Planning", TriggerName = "RequestCloseChatRoomTrigger"});
            phaseTriggerDataList.Add(new PhaseTriggerData{PhaseName = "Planning", TriggerName = "RequestJoinVoiceChannelTrigger"});
            phaseTriggerDataList.Add(new PhaseTriggerData{PhaseName = "Planning", TriggerName = "RequestLeaveVoiceChannelTrigger"});
            phaseTriggerDataList.Add(new PhaseTriggerData{PhaseName = "Planning", TriggerName = "RequestMuteUserTrigger"});
            phaseTriggerDataList.Add(new PhaseTriggerData{PhaseName = "Planning", TriggerName = "RequestStartedTalkingTrigger"});
            phaseTriggerDataList.Add(new PhaseTriggerData{PhaseName = "Planning", TriggerName = "RequestStoppedTalkingTrigger"});
            phaseTriggerDataList.Add(new PhaseTriggerData{PhaseName = "Planning", TriggerName = "RequestUnmuteUserTrigger"});
            phaseTriggerDataList.Add(new PhaseTriggerData{PhaseName = "Planning", TriggerName = "RequestWhiteboardRoomCreateTrigger"});
            phaseTriggerDataList.Add(new PhaseTriggerData{PhaseName = "Planning", TriggerName = "StartedTalkingTrigger"});
            phaseTriggerDataList.Add(new PhaseTriggerData{PhaseName = "Planning", TriggerName = "StoppedTalkingTrigger"});
            phaseTriggerDataList.Add(new PhaseTriggerData{PhaseName = "Executing", TriggerName = "SubplatformDockRequestTrigger"});
            phaseTriggerDataList.Add(new PhaseTriggerData{PhaseName = "Executing", TriggerName = "SubplatformLaunchRequestTrigger"});
            phaseTriggerDataList.Add(new PhaseTriggerData{PhaseName = "Planning", TriggerName = "TextChatRequestTrigger"});
            phaseTriggerDataList.Add(new PhaseTriggerData{PhaseName = "Executing", TriggerName = "TransferObjectRequestTrigger"});
            phaseTriggerDataList.Add(new PhaseTriggerData{PhaseName = "SA Building", TriggerName = "UpdateTagTrigger"});
            phaseTriggerDataList.Add(new PhaseTriggerData{PhaseName = "Executing", TriggerName = "WeaponLaunchRequestTrigger"});
            phaseTriggerDataList.Add(new PhaseTriggerData{PhaseName = "Planning", TriggerName = "WhiteboardClearAllRequestTrigger"});
            phaseTriggerDataList.Add(new PhaseTriggerData{PhaseName = "Planning", TriggerName = "WhiteboardClearRequestTrigger"});
            phaseTriggerDataList.Add(new PhaseTriggerData{PhaseName = "Planning", TriggerName = "WhiteboardLineRequestTrigger"});
            phaseTriggerDataList.Add(new PhaseTriggerData{PhaseName = "SA Building", TriggerName = "WhiteboardSyncScreenViewRequestTrigger"});
            phaseTriggerDataList.Add(new PhaseTriggerData{PhaseName = "SA Building", TriggerName = "WhiteboardUndoRequestTrigger"});
            */

            GetDataLists();
        }
Ejemplo n.º 8
0
        public void DetermineVisDataReq(ConfigDataModel configDataModel)
        {
            ObservableCollection<ConfigDisplay> configDisplays = null;

            this.configDataModel = configDataModel;

            // Clear the dashboard visualization map
            dashboardVisualizationMap.Clear();

            // Load the config displays
            configDisplays = configDataModel.LoadConfigDisplays();

            // Loop through all of the configDisplays
            foreach (ConfigDisplay configDisplay in configDisplays)
            {
                DashboardVisualization dashboardVisualization = null;

                // Fill determine the data needed based on the type of visualization
                if (configDisplay.Display.Name.CompareTo("Multi Pie Chart") == 0)
                {
                    // Allocate a new MutiPie Chart Visualization
                    dashboardVisualization = new MultiPieChart(configDisplay, configDataModel, measureInstXmlMap);
                }
                else if (configDisplay.Display.Name.CompareTo("Stacked Histogram") == 0)
                {
                    // Allocate a new Stacked Histogram Visualization
                    dashboardVisualization = new StackedHistogram(configDisplay, configDataModel, measureInstXmlMap);
                }
                else if (configDisplay.Display.Name.CompareTo("Bubbles") == 0)
                {
                    // Allocate a new Bubbles Visualization
                    dashboardVisualization = new Bubbles(configDisplay, configDataModel, measureInstXmlMap);
                }
                else if (configDisplay.Display.Name.CompareTo("Barcode") == 0)
                {
                    // Allocate a new Barcode Visualization
                    dashboardVisualization = new Barcode(configDisplay, configDataModel, measureInstXmlMap);
                }
                else if (configDisplay.Display.Name.CompareTo("Color Wheel") == 0)
                {
                    // Allocate a new ColorWheel Visualization
                    dashboardVisualization = new ColorWheel(configDisplay, configDataModel, measureInstXmlMap);
                }
                else if (configDisplay.Display.Name.CompareTo("Multi Level Bow Tie") == 0)
                {
                    // Allocate a new ColorWheel Visualization
                    dashboardVisualization = new MultiLevelBowTie(configDisplay, configDataModel, measureInstXmlMap);
                }
                else if (configDisplay.Display.Name.CompareTo("Heatmap") == 0)
                {
                    // Allocate a new ColorWheel Visualization
                    dashboardVisualization = new Heatmap(configDisplay, configDataModel, measureInstXmlMap);
                }
                else if (configDisplay.Display.Name.CompareTo("Radar") == 0)
                {
                    // Allocate a new ColorWheel Visualization
                    dashboardVisualization = new Radar(configDisplay, configDataModel, measureInstXmlMap);
                }
                else if (configDisplay.Display.Name.CompareTo("Star Spider") == 0)
                {
                    // Allocate a new ColorWheel Visualization
                    dashboardVisualization = new StarSpider(configDisplay, configDataModel, measureInstXmlMap);
                }
                else
                {
                    continue;
                }

                // Add this list to the configDisplay data map
                dashboardVisualizationMap.Add(configDisplay.ConfigDisplayID, dashboardVisualization);
            }
        }