jmri.jmrix.rps
Class Model

java.lang.Object
  extended by jmri.jmrix.rps.Model

public class Model
extends Object

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
Author:
Bob Jacobsen Copyright (C) 2008

Constructor Summary
Model()
           
 
Method Summary
 void addRegion(Region r)
          Include a region in the model
 void dispose()
           
 List<Region> getRegions()
          Get the list of active regions.
static Model instance()
           
 void loadModel(File file)
           
 void removeRegion(Region r)
          Include a region in the model
 void storeModel(File file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Model

public Model()
Method Detail

dispose

public void dispose()

addRegion

public void addRegion(Region r)
Include a region in the model


removeRegion

public void removeRegion(Region r)
Include a region in the model


getRegions

public List<Region> getRegions()
Get the list of active regions.

This list should be immutable, hence copied, but for now it's not.


storeModel

public void storeModel(File file)

loadModel

public void loadModel(File file)

instance

public static Model instance()


Copyright © 1997 - 2011 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads