|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SignalMastLogicManager
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, IDTAGS, LAYOUTBLOCKS, LIGHTS, LOGIXS, MEMORIES, OBLOCKS, PANELFILES, REPORTERS, ROUTES, SECTIONS, SENSORGROUPS, SENSORS, SIGNALGROUPS, SIGNALHEADS, SIGNALMASTLOGICS, SIGNALMASTS, TIMEBASE, TRANSITS, TURNOUTS, WARRANTS |
| Method Summary | |
|---|---|
void |
addDestinationMastToLogic(SignalMastLogic src,
SignalMast destination)
|
void |
automaticallyDiscoverSignallingPairs()
Discover all possible valid source and destination signalmasts past pairs on all layout editor panels. |
boolean |
checkValidDest(SignalMast sourceMast,
SignalMast destMast)
This uses the layout editor to check if the destination signalmast is reachable from the source signalmast |
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. |
SignalMastLogic |
newSignalMastLogic(SignalMast source)
|
void |
removeDestinationMastToLogic(SignalMastLogic src,
SignalMast destination)
|
void |
removeSignalMastLogic(SignalMastLogic sml)
Completely remove the signalmast logic. |
void |
removeSignalMastLogic(SignalMastLogic sml,
SignalMast dest)
Remove a destination mast from the signalmast logic |
void |
setSignalLogicDelay(long l)
|
| Methods inherited from interface jmri.Manager |
|---|
addPropertyChangeListener, deregister, getBeanBySystemName, getSystemNameArray, getSystemNameList, getSystemPrefix, getXMLOrder, makeSystemName, register, removePropertyChangeListener, systemLetter, typeLetter |
| Method Detail |
|---|
void addDestinationMastToLogic(SignalMastLogic src,
SignalMast destination)
void automaticallyDiscoverSignallingPairs()
throws JmriException
JmriException
boolean checkValidDest(SignalMast sourceMast,
SignalMast destMast)
throws JmriException
sourceMast - Source SignalMastdestMast - Destination SignalMast
JmriException
void discoverSignallingDest(SignalMast source,
LayoutEditor layout)
throws JmriException
source - Source SignalMastlayout - Layout Editor panel to check.
JmriExceptionvoid dispose()
Manager
dispose in interface ManagerArrayList<SignalMastLogic> getLogicsByDestination(SignalMast destination)
long getSignalLogicDelay()
SignalMastLogic getSignalMastLogic(SignalMast source)
ArrayList<SignalMastLogic> getSignalMastLogicList()
void initialise()
SignalMastLogic newSignalMastLogic(SignalMast source)
void removeDestinationMastToLogic(SignalMastLogic src,
SignalMast destination)
void removeSignalMastLogic(SignalMastLogic sml,
SignalMast dest)
sml - The signalmast logic of the source signaldest - The destination mastvoid removeSignalMastLogic(SignalMastLogic sml)
void setSignalLogicDelay(long l)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||