public static SamplingDescriptionBoard Create(DataResponse response)
        {
            SamplingDescriptionBoard board = new SamplingDescriptionBoard();

            board.Read(response);
            return(board);
        }
Exemple #2
0
        public static SamplingDescriptionBoard Create(BinaryReader reader)
        {
            SamplingDescriptionBoard board = new SamplingDescriptionBoard();

            board.Read(reader);
            return(board);
        }
 public override void Load()
 {
     if (!IsLoaded)
     {
         DescriptionBoard = SamplingDescriptionBoard.Create(Response);
         Root             = SamplingNode.Create(Response.Reader, DescriptionBoard, null);
     }
 }
Exemple #4
0
        public override void Load()
        {
            if (!IsLoaded)
            {
                DescriptionBoard = SamplingDescriptionBoard.Create(Reader);
                root             = SamplingNode.Create(Reader, DescriptionBoard, null);

                board = new Board <SamplingBoardItem, SamplingDescription, SamplingNode>(root);

                IsLoaded = true;
            }
        }
Exemple #5
0
        public override void Load()
        {
            if (!IsLoaded)
            {
                DescriptionBoard = SamplingDescriptionBoard.Create(Reader);
                root             = SamplingNode.Create(Reader, DescriptionBoard, null);
                root.CalculateRecursiveExcludeFlag(new Dictionary <Object, int>());

                board = new Board <SamplingBoardItem, SamplingDescription, SamplingNode>(root);

                IsLoaded = true;
            }
        }
Exemple #6
0
        public static SamplingDescriptionBoard Create(BinaryReader reader)
        {
            SamplingDescriptionBoard board = new SamplingDescriptionBoard();

            board.Descriptions = new Dictionary <UInt64, SamplingDescription>();

            uint count = reader.ReadUInt32();

            for (uint i = 0; i < count; ++i)
            {
                SamplingDescription desc = SamplingDescription.Create(reader);
                board.Descriptions[desc.Address] = desc;
            }

            return(board);
        }
        public static SamplingNode Create(BinaryReader reader, SamplingDescriptionBoard board, SamplingNode root)
        {
            UInt64 address = reader.ReadUInt64();

            SamplingDescription desc = null;

            if (!board.Descriptions.TryGetValue(address, out desc))
            {
                desc = SamplingDescription.UnresolvedDescription;
            }

            UInt32 passed = reader.ReadUInt32();

            SamplingNode node = new SamplingNode(root, desc, passed);

            UInt32 childrenCount = reader.ReadUInt32();

            for (UInt32 i = 0; i < childrenCount; ++i)
            {
                node.AddChild(SamplingNode.Create(reader, board, root != null ? root : node));
            }

            return(node);
        }