Testing types
This commit is contained in:
parent
0bccc0dd87
commit
7114b87bdd
22
init.lua
22
init.lua
@ -82,6 +82,24 @@ function multi.Stop()
|
|||||||
mainloopActive = false
|
mainloopActive = false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Types
|
||||||
|
multi.DESTROYED = multi.DestroyedObj
|
||||||
|
multi.ROOTPROCESS = "rootprocess"
|
||||||
|
multi.CONNECTOR = "connector"
|
||||||
|
multi.CONNECTOR_LINK = "connector_link"
|
||||||
|
multi.TIMEMASTER = "timemaster"
|
||||||
|
multi.PROCESS = "process"
|
||||||
|
multi.TIMER = "timer"
|
||||||
|
multi.EVENT = "event"
|
||||||
|
multi.UPDATER = "updater"
|
||||||
|
multi.ALARM = "alarm"
|
||||||
|
multi.LOOP = "loop"
|
||||||
|
multi.TLOOP = "tloop"
|
||||||
|
multi.STEP = "step"
|
||||||
|
multi.TSTEP = "tstep"
|
||||||
|
multi.THREAD = "thread"
|
||||||
|
multi.SERVICE = "service"
|
||||||
|
|
||||||
--Processor
|
--Processor
|
||||||
local priorityTable = {[false]="Disabled",[true]="Enabled"}
|
local priorityTable = {[false]="Disabled",[true]="Enabled"}
|
||||||
local ProcessName = {"SubProcessor","MainProcessor"}
|
local ProcessName = {"SubProcessor","MainProcessor"}
|
||||||
@ -91,6 +109,10 @@ function multi:getProcessors()
|
|||||||
return processes
|
return processes
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function multi:isType(type)
|
||||||
|
return self.Type == type
|
||||||
|
end
|
||||||
|
|
||||||
function multi:getStats()
|
function multi:getStats()
|
||||||
local stats = {
|
local stats = {
|
||||||
[multi.Name] = {
|
[multi.Name] = {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user