Module HOUND.ElintWorker
HOUND.ElintWorker
Functions
HOUND.ElintWorker:setCoalition (coalitionId) | set coalition retundent function will change global coalition |
HOUND.ElintWorker:getCoalition () | get worker coalition |
HOUND.ElintWorker:getNewTrackId () | get the next track number |
Platform Management
HOUND.ElintWorker:addPlatform (platformName) | add platform |
HOUND.ElintWorker:removePlatform (platformName) | remove specificd platform |
HOUND.ElintWorker:platformRefresh () | make sure all platforms are still alive and relevate |
HOUND.ElintWorker:removeDeadPlatforms () | remove dead platforms |
HOUND.ElintWorker:countPlatforms () | count number of platforms |
HOUND.ElintWorker:listPlatforms () | list all associated platform unit names |
Contact Management
HOUND.ElintWorker:isContact (emitter) | return if contact exists in the system |
HOUND.ElintWorker:addContact (emitter) | add contact to worker |
HOUND.ElintWorker:getContact (emitter[, getOnly]) | get HOUND.Contact from DCS Unit/UID |
HOUND.ElintWorker:removeContact (emitterName) | remove Contact from tracking |
HOUND.ElintWorker:setPreBriefedContact (emitter) | set contact as Prebriefed |
HOUND.ElintWorker:setDead (emitter) | set contact as Dead |
HOUND.ElintWorker:AlertOnLaunch (fireGrp) | Send Launch Alert |
HOUND.ElintWorker:isTracked (emitter) | is contact is tracked |
Site functions
HOUND.ElintWorker:isSite (site) | return if site exists in the system |
HOUND.ElintWorker:addSite (emitter) | add site to worker |
HOUND.ElintWorker:getSite (emitter[, getOnly]) | get HOUND.Contact.Site from DCS Unit/UID |
HOUND.ElintWorker:removeSite (groupName) | remove Site from tracking |
Worker functions
HOUND.ElintWorker:UpdateMarkers () | update markers to all contacts update all emitters |
HOUND.ElintWorker:Sniff (GroupName) | Perform a sample of all emitting radars against all platforms generates and stores datapoints as required |
HOUND.ElintWorker:Process () | Process function process all the information stored in the system to update all radar positions |
Query functions
HOUND.ElintWorker:listContactsInSector (sectorName) | list all contacts is a sector |
HOUND.ElintWorker:listAllContacts (sectorName) | Return all contacts managed by this instance regardless of sectors |
HOUND.ElintWorker:listAllContactsByRange (sectorName) | Return all contacts managed by this instance sorted by range |
HOUND.ElintWorker:countContacts (sectorName) | return number of contacts tracked |
HOUND.ElintWorker:getContacts (sectorName) | return list of contacts |
HOUND.ElintWorker:sortContacts (sortFunc, sectorName) | return a sorted list of contacts |
HOUND.ElintWorker:countSites (sectorName) | return number of contacts tracked |
HOUND.ElintWorker:getSites (sectorName) | return list of contacts |
HOUND.ElintWorker:sortSites (sortFunc, sectorName) | return a sorted list of contacts |
HOUND.ElintWorker:listAllSites (sectorName) | Return all contacts managed by this instance regardless of sector |
HOUND.ElintWorker:listAllSitesByRange (sectorName) | return all contacts managed by this instance sorted by range |
Functions
- HOUND.ElintWorker:setCoalition (coalitionId)
-
set coalition
retundent function will change global coalition
Parameters:
- coalitionId
- HOUND.ElintWorker:getCoalition ()
-
get worker coalition
Returns:
-
coalitionId
- HOUND.ElintWorker:getNewTrackId ()
-
get the next track number
Returns:
-
UID for the contact
Platform Management
- HOUND.ElintWorker:addPlatform (platformName)
-
add platform
Parameters:
- platformName string DCS Unit Name of platform to be added
Returns:
-
bool
True if requested platform was added. else false
- HOUND.ElintWorker:removePlatform (platformName)
-
remove specificd platform
Parameters:
- platformName DCS Unit name to remove
Returns:
-
bool
true if removed, else false
- HOUND.ElintWorker:platformRefresh ()
- make sure all platforms are still alive and relevate
- HOUND.ElintWorker:removeDeadPlatforms ()
- remove dead platforms
- HOUND.ElintWorker:countPlatforms ()
-
count number of platforms
Returns:
-
int
number of platforms
- HOUND.ElintWorker:listPlatforms ()
-
list all associated platform unit names
Returns:
-
Table list of active platform names
Contact Management
- HOUND.ElintWorker:isContact (emitter)
-
return if contact exists in the system
Parameters:
- emitter
Returns:
-
bool
return True if unit is in the system
- HOUND.ElintWorker:addContact (emitter)
-
add contact to worker
Parameters:
- emitter DCS Unit to add
Returns:
-
Name of added unit
- HOUND.ElintWorker:getContact (emitter[, getOnly])
-
get HOUND.Contact from DCS Unit/UID
Parameters:
- emitter DCS Unit/name of radar unit
- getOnly if true function will not create new unit if not exist (optional)
Returns:
-
HOUND.Contact.Emitter instance of that Unit
- HOUND.ElintWorker:removeContact (emitterName)
-
remove Contact from tracking
Parameters:
- emitterName string DCS unit Name to remove
Returns:
-
bool
true if removed.
- HOUND.ElintWorker:setPreBriefedContact (emitter)
-
set contact as Prebriefed
Parameters:
- emitter DCS Unit/Unit name of radar
- HOUND.ElintWorker:setDead (emitter)
-
set contact as Dead
Parameters:
- emitter DCS Unit/Unit name of radar
- HOUND.ElintWorker:AlertOnLaunch (fireGrp)
-
Send Launch Alert
Parameters:
- fireGrp DCS Group/Group name that is firing
- HOUND.ElintWorker:isTracked (emitter)
-
is contact is tracked
Parameters:
- emitter DCS Unit/UID of requested emitter
Returns:
-
bool
if Unit is being tracked by current HoundWorker instance.
Site functions
- HOUND.ElintWorker:isSite (site)
-
return if site exists in the system
Parameters:
- site group name
Returns:
-
bool
return True if group is in the system
- HOUND.ElintWorker:addSite (emitter)
-
add site to worker
Parameters:
- emitter DCS Unit to add
Returns:
-
Name of added group
- HOUND.ElintWorker:getSite (emitter[, getOnly])
-
get HOUND.Contact.Site from DCS Unit/UID
Parameters:
- emitter HOUND.Contact.Emitter or DCS group name or DCS group
- getOnly if true function will not create new unit if not exist (optional)
Returns:
-
HOUND.Contact.Site instance of input group
- HOUND.ElintWorker:removeSite (groupName)
-
remove Site from tracking
Parameters:
- groupName string DCS group Name to remove
Returns:
-
bool
true if removed.
Worker functions
- HOUND.ElintWorker:UpdateMarkers ()
- update markers to all contacts update all emitters
- HOUND.ElintWorker:Sniff (GroupName)
-
Perform a sample of all emitting radars against all platforms
generates and stores datapoints as required
Parameters:
- GroupName
- HOUND.ElintWorker:Process ()
- Process function process all the information stored in the system to update all radar positions
Query functions
- HOUND.ElintWorker:listContactsInSector (sectorName)
-
list all contacts is a sector
Parameters:
- sectorName optional string name or sector to filter by
- HOUND.ElintWorker:listAllContacts (sectorName)
-
Return all contacts managed by this instance regardless of sectors
Parameters:
- sectorName optional string name or sector to filter by
- HOUND.ElintWorker:listAllContactsByRange (sectorName)
-
Return all contacts managed by this instance sorted by range
Parameters:
- sectorName
- HOUND.ElintWorker:countContacts (sectorName)
-
return number of contacts tracked
Parameters:
- sectorName optional string name or sector to filter by
- HOUND.ElintWorker:getContacts (sectorName)
-
return list of contacts
Parameters:
- sectorName optional string sector to filter by
Returns:
-
list of HOUND.Contact.Emitter
- HOUND.ElintWorker:sortContacts (sortFunc, sectorName)
-
return a sorted list of contacts
Parameters:
- sortFunc Function to sort by
- sectorName optional string sector to filter by
Returns:
-
sorted list of HOUND.Contact.Emitter
- HOUND.ElintWorker:countSites (sectorName)
-
return number of contacts tracked
Parameters:
- sectorName optional string name or sector to filter by
- HOUND.ElintWorker:getSites (sectorName)
-
return list of contacts
Parameters:
- sectorName optional string sector to filter by
Returns:
-
list of HOUND.Contact.Site
- HOUND.ElintWorker:sortSites (sortFunc, sectorName)
-
return a sorted list of contacts
Parameters:
- sortFunc Function to sort by
- sectorName optional string sector to filter by
Returns:
-
sorted list of HOUND.Contact.Emitter
- HOUND.ElintWorker:listAllSites (sectorName)
-
Return all contacts managed by this instance regardless of sector
Parameters:
- sectorName optional string name or sector to filter by
- HOUND.ElintWorker:listAllSitesByRange (sectorName)
-
return all contacts managed by this instance sorted by range
Parameters:
- sectorName