@ -1689,8 +1689,6 @@ public class Prism extends PrismComponent implements PrismSettingsListener
currentModelType = currentModulesFile = = null ? null : currentModulesFile . getModelType ( ) ;
currentModelType = currentModulesFile = = null ? null : currentModulesFile . getModelType ( ) ;
currentModelInfo = currentModulesFile ;
currentModelInfo = currentModulesFile ;
currentDefinedMFConstants = null ;
currentDefinedMFConstants = null ;
currentModel = null ;
currentModelExpl = null ;
/ / Print basic model info
/ / Print basic model info
mainLog . println ( "\nType: " + currentModulesFile . getModelType ( ) ) ;
mainLog . println ( "\nType: " + currentModulesFile . getModelType ( ) ) ;
@ -1736,8 +1734,6 @@ public class Prism extends PrismComponent implements PrismSettingsListener
currentModelType = currentModelGenerator = = null ? null : currentModelGenerator . getModelType ( ) ;
currentModelType = currentModelGenerator = = null ? null : currentModelGenerator . getModelType ( ) ;
currentModelInfo = currentModelGenerator ;
currentModelInfo = currentModelGenerator ;
currentDefinedMFConstants = null ;
currentDefinedMFConstants = null ;
currentModel = null ;
currentModelExpl = null ;
/ / Print basic model info
/ / Print basic model info
mainLog . println ( "\nGenerator: " + currentModelGenerator . getClass ( ) . getName ( ) ) ;
mainLog . println ( "\nGenerator: " + currentModelGenerator . getClass ( ) . getName ( ) ) ;
@ -1768,9 +1764,6 @@ public class Prism extends PrismComponent implements PrismSettingsListener
if ( currentModelGenerator ! = null ) {
if ( currentModelGenerator ! = null ) {
currentModelGenerator . setSomeUndefinedConstants ( definedMFConstants ) ;
currentModelGenerator . setSomeUndefinedConstants ( definedMFConstants ) ;
}
}
/ / Reset dependent info
currentModel = null ;
currentModelExpl = null ;
/ / If required , export parsed PRISM model , with constants expanded
/ / If required , export parsed PRISM model , with constants expanded
if ( exportPrismConst ) {
if ( exportPrismConst ) {
@ -1804,7 +1797,6 @@ public class Prism extends PrismComponent implements PrismSettingsListener
currentModelType = currentModulesFile = = null ? null : currentModulesFile . getModelType ( ) ;
currentModelType = currentModulesFile = = null ? null : currentModulesFile . getModelType ( ) ;
currentModelInfo = currentModulesFile ;
currentModelInfo = currentModulesFile ;
currentDefinedMFConstants = null ;
currentDefinedMFConstants = null ;
currentModelExpl = null ;
}
}
/ * *
/ * *
@ -1824,7 +1816,6 @@ public class Prism extends PrismComponent implements PrismSettingsListener
/ / Reset dependent info
/ / Reset dependent info
currentModelType = currentModel = = null ? null : currentModel . getModelType ( ) ;
currentModelType = currentModel = = null ? null : currentModel . getModelType ( ) ;
currentDefinedMFConstants = null ;
currentDefinedMFConstants = null ;
currentModelExpl = null ;
}
}
/ * *
/ * *
@ -1854,8 +1845,6 @@ public class Prism extends PrismComponent implements PrismSettingsListener
currentModelType = currentModulesFile = = null ? null : currentModulesFile . getModelType ( ) ;
currentModelType = currentModulesFile = = null ? null : currentModulesFile . getModelType ( ) ;
currentModelInfo = currentModulesFile ;
currentModelInfo = currentModulesFile ;
currentDefinedMFConstants = null ;
currentDefinedMFConstants = null ;
currentModel = null ;
currentModelExpl = null ;
return currentModulesFile ;
return currentModulesFile ;
}
}
@ -2909,8 +2898,6 @@ public class Prism extends PrismComponent implements PrismSettingsListener
currentModelType = ModelType . MDP ;
currentModelType = ModelType . MDP ;
currentModelGenerator = new ModulesFileModelGenerator ( currentModulesFile , this ) ;
currentModelGenerator = new ModulesFileModelGenerator ( currentModulesFile , this ) ;
clearBuiltModel ( ) ;
clearBuiltModel ( ) ;
currentModel = null ;
currentModelExpl = null ;
/ / If required , export generated PRISM model
/ / If required , export generated PRISM model
if ( exportDigital ) {
if ( exportDigital ) {
try {
try {
@ -3610,13 +3597,16 @@ public class Prism extends PrismComponent implements PrismSettingsListener
/ * *
/ * *
* Clear the built model if needed ( free / deallocate memory etc )
* Clear the built model if needed ( free / deallocate memory etc )
* < br >
* Resets { @code currentModel } and { @code currentModelExpl } to { @code null } .
* /
* /
private void clearBuiltModel ( )
private void clearBuiltModel ( )
{
{
if ( currentModel ! = null )
if ( currentModel ! = null ) {
currentModel . clear ( ) ;
currentModel . clear ( ) ;
/ * if ( currentModelExpl ! = null )
currentModelExpl . clear ( ) ; * /
currentModel = null ;
}
currentModelExpl = null ;
}
}
/ * *
/ * *