Example #1
0
 public override void Open()
 {
     base.Open();
     sendDataNode    = _SimFile.SelectSingleNode("/simulation/sendData");
     receiveDataNode = _SimFile.SelectSingleNode("/simulation/receiveData");
     sendDataReader  = GetDataBlockReaderByType(sendDataNode.Attributes["type"].Value);
     sendDataReader.Initialize(sendDataNode);
     receiveDataReader = GetDataBlockReaderByType(receiveDataNode.Attributes["type"].Value);
     receiveDataReader.Initialize(receiveDataNode);
 }
Example #2
0
 public SubNodesEnumerator(
     IDataBlockReader dataBlockReader,
     IBTreeNodeLoader <SubnodeBlock, BID> subnodeBlockLoader,
     IExtractor <SubnodeBlock, SIEntry[]> entriesFromIntermediateSubnodeBlockExtractor,
     IExtractor <SubnodeBlock, SLEntry[]> entriesFromLeafSubnodeBlockExtractor)
 {
     this.dataBlockReader    = dataBlockReader;
     this.subnodeBlockLoader = subnodeBlockLoader;
     this.entriesFromIntermediateSubnodeBlockExtractor = entriesFromIntermediateSubnodeBlockExtractor;
     this.entriesFromLeafSubnodeBlockExtractor         = entriesFromLeafSubnodeBlockExtractor;
 }
Example #3
0
 public DataTreeReader(
     INodeEntryFinder nodeEntryFinder,
     IDataBlockReader dataBlockReader,
     IBlockDataDeObfuscator blockDataDeObfuscator,
     IHeaderReader headerReader,
     IBTreeEntryFinder <BID, LBBTEntry, BREF> blockBTreeEntryFinder,
     IExternalDataBlockIdsReader externalDataBlockIdsReader)
 {
     this.nodeEntryFinder            = nodeEntryFinder;
     this.dataBlockReader            = dataBlockReader;
     this.blockDataDeObfuscator      = blockDataDeObfuscator;
     this.headerReader               = headerReader;
     this.blockBTreeEntryFinder      = blockBTreeEntryFinder;
     this.externalDataBlockIdsReader = externalDataBlockIdsReader;
 }
Example #4
0
 public override void Close()
 {
     ReadNewSendData();
     ReadNewReceiveData();
     if (expectedOutput.Size > 0)
     {
         throw new Exception("More output data expected. (Size = " + expectedOutput.Size.ToString() + ", SimulationName = '" + simulationName + "')");
     }
     if (InputBuffer.Size > 0)
     {
         throw new Exception("Still data to read. (Size = " + mInputBuffer.Size.ToString() + ", SimulationName = '" + simulationName + "')");
     }
     receiveDataReader.Close();
     receiveDataReader = null;
     sendDataReader.Close();
     sendDataReader = null;
     base.Close();
 }
Example #5
0
 public SubnodeBlockLoader(ICache <BID, SubnodeBlock> cachedSubnodeBlocks, IDataBlockReader dataBlockReader, IDecoder <SubnodeBlock> subnodeBlockDecoder)
 {
     this.subnodeBlockDecoder = subnodeBlockDecoder;
     this.dataBlockReader     = dataBlockReader;
     this.cachedSubnodeBlocks = cachedSubnodeBlocks;
 }