Ignore:
Timestamp:
07/19/10 17:47:11 (22 months ago)
Author:
tolteque
Message:

o LOTATC

  • Add filtering in LUA, and add a parameter (isDetectable) in NEW_OBJECT frame
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lotatc_server/lotatc_object.py

    r2080 r2118  
    3939    self.unitClsId = unitClsId 
    4040    self.groupName = "" 
     41    self.detection = False 
    4142 
    4243    # init default value for latitude and longitude 
     
    6162  def setGroupName(self, groupName): 
    6263    self.groupName = groupName 
    63      
     64 
     65# ============================================================ 
     66  ## Set the flag which indicate if the unit is detectable by Latatc 
     67  # @param self             instance id 
     68  # @param flag             detection flag: "0"/"1" 
     69  def setDetectionFlag( self, flag): 
     70    if flag == "1": 
     71      self.detection = True 
     72 
     73# ============================================================ 
     74  ## Tells if the unit is detectable by Lotatv 
     75  # @param self             instance id 
     76  def isDetectable( self): 
     77    return self.detection 
     78       
    6479# ============================================================ 
    6580  ## Returns a duplicated object 
     
    7186    newObject.catchingRadar = self.catchingRadar 
    7287    newObject.groupName     = self.groupName 
     88    newObject.detection     = self.detection 
    7389    return newObject 
    7490        
Note: See TracChangeset for help on using the changeset viewer.