Aggiornamento con nuovo standard nomencalatura

This commit is contained in:
andrea.villa
2025-04-24 09:02:21 +02:00
parent 0d3cc467a9
commit 88ee8759a3
13 changed files with 38 additions and 38 deletions
+9 -9
View File
@@ -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