original_docstring: 
  		This method generates a stream (i.e. a list of packets with the right inter frame spacing) from the PCAP file.
  	
  		:return: stream of packets
  		:rtype: list
  			
  
  		:Example:
  
  			>>> stream = device.generateStream()
  			>>> device2.sendp(*stream)
  
  		.. note::
  
  			This method is a **shared method** and can be called from the corresponding Emitters / Receivers.
  
  		
docstring: This method generates a stream  from the PCAP file.
docstring_tokens: This method generates a stream from the PCAP file .
code: def generateStream(self):
  		'''
  		This method generates a stream (i.e. a list of packets with the right inter frame spacing) from the PCAP file.
  	
  		:return: stream of packets
  		:rtype: list
  			
  
  		:Example:
  
  			>>> stream = device.generateStream()
  			>>> device2.sendp(*stream)
  
  		.. note::
  
  			This method is a **shared method** and can be called from the corresponding Emitters / Receivers.
  
  		'''
  		if self.mode == "write":
  			self.close()
  			self.openFile()
  			self.init()
  		
  		stream = []
  		currentTimestamp = None
  		for timestamp,packet in self.getAllPackets():
  			if currentTimestamp is None:
  				currentTimestamp = timestamp
  			else:
  				wait = (timestamp - currentTimestamp)
  				stream.append(wireless.WaitPacket(time=wait))
  				currentTimestamp = timestamp
  
  			stream.append(self.publish("convertRawToMiragePacket",packet))
  		return stream
code_tokens: def generateStream ( self ) : if self . mode == "write" : self . close ( ) self . openFile ( ) self . init ( ) stream = [ ] currentTimestamp = None for timestamp , packet in self . getAllPackets ( ) : if currentTimestamp is None : currentTimestamp = timestamp else : wait = ( timestamp - currentTimestamp ) stream . append ( wireless . WaitPacket ( time = wait ) ) currentTimestamp = timestamp stream . append ( self . publish ( "convertRawToMiragePacket" , packet ) ) return stream
short_docstring: This method generates a stream (i.e.
short_docstring_tokens: This method generates a stream ( i . e .
comment: '''
  		This method generates a stream (i.e. a list of packets with the right inter frame spacing) from the PCAP file.
  	
  		:return: stream of packets
  		:rtype: list
  			
  
  		:Example:
  
  			>>> stream = device.generateStream()
  			>>> device2.sendp(*stream)
  
  		.. note::
  
  			This method is a **shared method** and can be called from the corresponding Emitters / Receivers.
  
  		'''