jmri.jmrix.loconet
Class LnSecurityElementManager

java.lang.Object
  extended by jmri.jmrix.loconet.LnSecurityElementManager

public class LnSecurityElementManager
extends Object

Manager for SecurityElement objects, currently local to LocoNet implementations. Provides basic rendevous services. Also serves as the manager for AspectGenerator objects (for now).

Author:
Bob Jacobsen Copyright (C) 2002

Field Summary
protected  Hashtable<Integer,AspectGenerator> mHashAG
           
protected  Hashtable<Integer,SecurityElement> mHashSE
           
 
Constructor Summary
LnSecurityElementManager()
           
 
Method Summary
 void addPropertyChangeListener(PropertyChangeListener l)
           
 void dispose()
           
protected  void firePropertyChange(String p, Object old, Object n)
           
 AspectGenerator getAspectGenerator(int i)
          Create a new object as needed
 AspectGenerator getAspectGenerator(String name)
           
 List<AspectGenerator> getAspectGeneratorList()
          Get the list of known AspectGenerator objects, unsorted
 SecurityElement getSecurityElement(int i)
          Create a new object as needed
 SecurityElement getSecurityElement(String name)
           
 List<SecurityElement> getSecurityElementList()
          Get the list of known SecurityElement objects, unsorted
static LnSecurityElementManager instance()
           
 void removePropertyChangeListener(PropertyChangeListener l)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mHashSE

protected Hashtable<Integer,SecurityElement> mHashSE

mHashAG

protected Hashtable<Integer,AspectGenerator> mHashAG
Constructor Detail

LnSecurityElementManager

public LnSecurityElementManager()
Method Detail

dispose

public void dispose()

getSecurityElementList

public List<SecurityElement> getSecurityElementList()
Get the list of known SecurityElement objects, unsorted


getAspectGeneratorList

public List<AspectGenerator> getAspectGeneratorList()
Get the list of known AspectGenerator objects, unsorted


getSecurityElement

public SecurityElement getSecurityElement(int i)
Create a new object as needed


getSecurityElement

public SecurityElement getSecurityElement(String name)

getAspectGenerator

public AspectGenerator getAspectGenerator(int i)
Create a new object as needed


getAspectGenerator

public AspectGenerator getAspectGenerator(String name)

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener l)

firePropertyChange

protected void firePropertyChange(String p,
                                  Object old,
                                  Object n)

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener l)

instance

public static LnSecurityElementManager instance()


Copyright © 1997 - 2009 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