Package jmri.jmrix.rps
Class Model
java.lang.Object
jmri.jmrix.rps.Model
Model holds RPS representation of layout geometry and logical structure.
The layout geometry is expressed as a set of (perhaps overlapping) Regions.
- Since:
- 2.1.7
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidInclude a region in the model.voiddispose()Get the list of active regions.static Modelinstance()void(package private) voidvoidInclude a region in the model.(package private) voidvoidstoreModel(File file)
-
Field Details
-
regions
-
_instance
-
-
Constructor Details
-
Model
public Model()
-
-
Method Details
-
loadValues
void loadValues() -
dispose
-
addRegion
Include a region in the model.- Parameters:
r- region to add.
-
removeRegion
Include a region in the model.- Parameters:
r- region to remove.
-
getRegions
Get the list of active regions.This list should be immutable, hence copied, but for now it's not.
- Returns:
- list of regions.
-
storeModel
-
loadModel
-
setInitialModel
void setInitialModel() -
instance
-