Пример #1
0
        /// <summary>
        /// Creates a file containing the completed list of tags
        /// </summary>
        /// <param name="destination">File pathway for the list of tags
        /// </param>
        /// <param name="dualList">DualList object cointaining the list of tags
        /// </param>
        public static void buildAssociationFile(string destination, DualList dualList)
        {
            StreamWriter writer = new StreamWriter(destination);

            string[] tids = dualList.getTidArray();
            string[] epcs = dualList.getEpcArray();

            for (int i = 0; i < tids.Length; i++)
            {
                writer.WriteLine(epcs[i] + "," + tids[i]);
            }
            writer.Close();
        }
Пример #2
0
        /// <summary>
        /// Creates a file that contains a list of the bad tags
        /// </summary>
        /// <param name="destination"> File path for bad file </param>
        /// <param name="dualList"> DualList object containing list of tags
        /// </param>
        public static void buildBadFile(string destination, DualList dualList)
        {
            StreamWriter writer = new StreamWriter(destination);

            string[] tids = dualList.getBadTidList();
            string[] epcs = dualList.getBadEpcList();

            for (int i = 0; i < tids.Length; i++)
            {
                if ((epcs[i] == "") || (epcs[i] == null))
                {
                }
                else
                {
                    writer.WriteLine(epcs[i] + "," + tids[i]);
                }
            }

            writer.Close();
        }
Пример #3
0
        /// <summary>
        /// Creates a file containing all the good tags
        /// </summary>
        /// <param name="destination">File pathway</param>
        /// <param name="dualList">DualList object containing the lists of tags</param>
        public static void buildGoodFile(string destination, DualList dualList)
        {
            StreamWriter writer = new StreamWriter(destination);

            string[] tids = dualList.getTidArray();
            string[] epcs = dualList.getEpcArray();
            TimeList time = dualList.getTimeList();


            for (int i = 0; i < tids.Length; i++)
            {
                if (epcs[i] == null || epcs[i] == "")
                {
                }
                else
                {
                    writer.WriteLine(epcs[i] + "," + tids[i] + "," + time.getDateAt(i) + "," + time.getTimeAt(i));
                }
            }
            writer.Close();
        }
Пример #4
0
 public void createErroFile(String fileLocation, DualList dl)
 {
 }