jmri
Interface SignalMastLogicManager

Show UML class diagram
All Superinterfaces:
Manager
All Known Implementing Classes:
DefaultSignalMastLogicManager

public interface SignalMastLogicManager
extends Manager


This file is part of JMRI.

JMRI is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. See the "COPYING" file for a copy of this license.

JMRI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.


Field Summary
 
Fields inherited from interface jmri.Manager
AUDIO, BLOCKBOSS, BLOCKS, CONDITIONALS, ENTRYEXIT, IDTAGS, LAYOUTBLOCKS, LIGHTS, LOGIXS, MEMORIES, OBLOCKS, PANELFILES, REPORTERS, ROUTES, SECTIONS, SENSORGROUPS, SENSORS, SIGNALGROUPS, SIGNALHEADS, SIGNALMASTLOGICS, SIGNALMASTS, TIMEBASE, TRANSITS, TURNOUTS, WARRANTS
 
Method Summary
 void automaticallyDiscoverSignallingPairs()
          Discover all possible valid source and destination signalmasts past pairs on all layout editor panels.
 void disableLayoutEditorUse(SignalMast mast)
           
 void discoverSignallingDest(SignalMast source, LayoutEditor layout)
          Discover valid destination signalmasts for a given source signal on a given layout editor panel.
 void dispose()
          Free resources when no longer used.
 ArrayList<SignalMastLogic> getLogicsByDestination(SignalMast destination)
          Gather a list of all the signal mast logics, by destination signal mast
 long getSignalLogicDelay()
           
 SignalMastLogic getSignalMastLogic(SignalMast source)
           
 ArrayList<SignalMastLogic> getSignalMastLogicList()
          Returns an arraylist of signalmastlogic
 void initialise()
          Used to initialise all the signalmast logics. primarily used after loading.
 boolean isSignalMastUsed(SignalMast mast)
           
 SignalMastLogic newSignalMastLogic(SignalMast source)
           
 void removeSignalMast(SignalMast mast)
          Completely remove the signalmast logic, for a specific signal mast
 void removeSignalMastLogic(SignalMastLogic sml)
          Completely remove the signalmast logic.
 void removeSignalMastLogic(SignalMastLogic sml, SignalMast dest)
          Remove a destination mast from the signalmast logic
 void replaceSignalMast(SignalMast oldMast, SignalMast newMast)
          This will replace all instances of an old SignalMast (either source or destination) with the new signal mast instance.
 void setSignalLogicDelay(long l)
           
 void swapSignalMasts(SignalMast mastA, SignalMast mastB)
           
 
Methods inherited from interface jmri.Manager
addPropertyChangeListener, deregister, getBeanBySystemName, getBeanByUserName, getNamedBean, getNamedBeanList, getSystemNameArray, getSystemNameList, getSystemPrefix, getXMLOrder, makeSystemName, register, removePropertyChangeListener, systemLetter, typeLetter
 

Method Detail

replaceSignalMast

void replaceSignalMast(SignalMast oldMast,
                       SignalMast newMast)
This will replace all instances of an old SignalMast (either source or destination) with the new signal mast instance. This is for use with such tools as the layout editor where a signalmast can at a certain location can be replaced with another, while the remainder of the configuration stays the same.


automaticallyDiscoverSignallingPairs

void automaticallyDiscoverSignallingPairs()
                                          throws JmriException
Discover all possible valid source and destination signalmasts past pairs on all layout editor panels.

Throws:
JmriException

discoverSignallingDest

void discoverSignallingDest(SignalMast source,
                            LayoutEditor layout)
                            throws JmriException
Discover valid destination signalmasts for a given source signal on a given layout editor panel.

Parameters:
source - Source SignalMast
layout - Layout Editor panel to check.
Throws:
JmriException

dispose

void dispose()
Description copied from interface: Manager
Free resources when no longer used. Specifically, remove all references to and from this object, so it can be garbage-collected.

Specified by:
dispose in interface Manager

getLogicsByDestination

ArrayList<SignalMastLogic> getLogicsByDestination(SignalMast destination)
Gather a list of all the signal mast logics, by destination signal mast


getSignalLogicDelay

long getSignalLogicDelay()

getSignalMastLogic

SignalMastLogic getSignalMastLogic(SignalMast source)

getSignalMastLogicList

ArrayList<SignalMastLogic> getSignalMastLogicList()
Returns an arraylist of signalmastlogic

Returns:
An ArrayList of SignalMast logics

initialise

void initialise()
Used to initialise all the signalmast logics. primarily used after loading.


newSignalMastLogic

SignalMastLogic newSignalMastLogic(SignalMast source)

removeSignalMastLogic

void removeSignalMastLogic(SignalMastLogic sml,
                           SignalMast dest)
Remove a destination mast from the signalmast logic

Parameters:
sml - The signalmast logic of the source signal
dest - The destination mast

removeSignalMastLogic

void removeSignalMastLogic(SignalMastLogic sml)
Completely remove the signalmast logic.


removeSignalMast

void removeSignalMast(SignalMast mast)
Completely remove the signalmast logic, for a specific signal mast


disableLayoutEditorUse

void disableLayoutEditorUse(SignalMast mast)

swapSignalMasts

void swapSignalMasts(SignalMast mastA,
                     SignalMast mastB)

isSignalMastUsed

boolean isSignalMastUsed(SignalMast mast)

setSignalLogicDelay

void setSignalLogicDelay(long l)


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