Public Member Functions | Public Attributes | List of all members
lem_server.ConnInfo Class Reference

Public Member Functions

def __init__ (self, client, query, timeout)
 
def late (self)
 

Public Attributes

 client
 
 query
 
 deadline
 

Detailed Description

Definition at line 73 of file lem_server.py.

Constructor & Destructor Documentation

def lem_server.ConnInfo.__init__ (   self,
  client,
  query,
  timeout 
)

Definition at line 74 of file lem_server.py.

Referenced by PandAna.core.core.spectrum.fill().

74  def __init__(self, client, query, timeout):
75  self.client = client
76  self.query = query
77  self.deadline = time.time()+int(timeout)
78 
def __init__(self, client, query, timeout)
Definition: lem_server.py:74

Member Function Documentation

def lem_server.ConnInfo.late (   self)

Definition at line 79 of file lem_server.py.

References lem_server.ConnInfo.deadline, and makeTrainCVSamples.int.

79  def late(self):
80  # Discretize so that we close several at second-boundaries
81  # instead of one constantly.
82  return int(time.time()) > int(self.deadline)
83 
84 
85 

Member Data Documentation

lem_server.ConnInfo.client

Definition at line 75 of file lem_server.py.

lem_server.ConnInfo.deadline

Definition at line 77 of file lem_server.py.

Referenced by lem_server.ConnInfo.late().

lem_server.ConnInfo.query

The documentation for this class was generated from the following file: