Aggiornamento con nuovo standard nomencalatura
This commit is contained in:
@@ -233,12 +233,12 @@ function BeamExec.GetStrategiesFromJSONinBD()
|
||||
return
|
||||
end
|
||||
|
||||
local FeaturesList = {}
|
||||
FeaturesList = ImportFileJSON( sFile)
|
||||
local FeatureList = {}
|
||||
FeatureList = ImportFileJSON( sFile)
|
||||
|
||||
-- metto la tabella letta nella lista globale STRATEGIES
|
||||
STRATEGIES = {}
|
||||
STRATEGIES.Features = FeaturesList
|
||||
STRATEGIES.FeatureList = FeatureList
|
||||
end
|
||||
end
|
||||
|
||||
@@ -537,15 +537,15 @@ end
|
||||
|
||||
local function GetStrategiesFromGlobalList( Proc)
|
||||
-- cerco tra le feature
|
||||
for i = 1, #STRATEGIES.Features do
|
||||
for i = 1, #STRATEGIES.FeatureList do
|
||||
-- se trovo la feature
|
||||
if Proc.nPrc == STRATEGIES.Features[i].nPrc and Proc.nGrp == STRATEGIES.Features[i].nGrp then
|
||||
if Proc.nPrc == STRATEGIES.FeatureList[i].nPrc and Proc.nGrp == STRATEGIES.FeatureList[i].nGrp then
|
||||
-- cerco tra le topologie
|
||||
for j = 1, #STRATEGIES.Features[i].Topologies do
|
||||
for j = 1, #STRATEGIES.FeatureList[i].TopologyList do
|
||||
-- se trovo la topologia
|
||||
if Proc.Topology.sName == STRATEGIES.Features[i].Topologies[j].sName then
|
||||
if Proc.Topology.sName == STRATEGIES.FeatureList[i].TopologyList[j].sName then
|
||||
-- ritorno le strategie disponibili per la feature che sto analizzando
|
||||
return STRATEGIES.Features[i].Topologies[j].Strategies
|
||||
return STRATEGIES.FeatureList[i].TopologyList[j].StrategyList
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -557,7 +557,7 @@ end
|
||||
local function GetStrategies( Proc)
|
||||
local AvailableStrategiesForProc = nil
|
||||
-- se la lista STRATEGIES è stata letta da JSON (quindi non è vuota), ritorno le strategie possibili
|
||||
if STRATEGIES and #STRATEGIES.Features > 0 then
|
||||
if STRATEGIES and #STRATEGIES.FeatureList > 0 then
|
||||
AvailableStrategiesForProc = GetStrategiesFromGlobalList( Proc)
|
||||
end
|
||||
-- se non ho trovato strategie disponibili nel JSON, o se JSON non presente, lancio script che setta le strategie in modo statico, come definito con cliente
|
||||
|
||||
Reference in New Issue
Block a user