Exemplo n.º 1
0
        // adds new GraphableData to DataSet matching by GraphableDescription.GraphTitle
        public void AddData(GraphableData newData, string graphTitle)
        {
            // search through GraphableDescriptions
            // this can be made more efficient in the future
            for (int i = 0; i < graphableDescriptionList.Count; i++)
            {
                if (graphableDescriptionList[i].GraphTitle == graphTitle)
                {
                    // add data to graphableDataListList and stop for loop
                    graphableDataListList[i].Add(newData);
                    return;
                }
            }

            Debug.Log("AddData: No Graph found with GrahTitle: " + graphTitle);
        }
Exemplo n.º 2
0
 // adds data to dataset
 public void AddToDataSet(GraphableData newData, string graphTitle)
 {
     dataSet.AddData(newData, graphTitle);
 }