Class DestinationPoints
- All Implemented Interfaces:
Comparable<NamedBean>,PropertyChangeProvider,NamedBean
-
Nested Class Summary
Nested classes/interfaces inherited from interface jmri.NamedBean
NamedBean.BadNameException, NamedBean.BadSystemNameException, NamedBean.BadUserNameException, NamedBean.DisplayOptions, NamedBean.DuplicateSystemNameException -
Field Summary
FieldsModifier and TypeFieldDescription(package private) int(package private) JButton(package private) Object(package private) EntryExitPairs(package private) static final int(package private) PointDetailsstatic final StringString constant for active.static final StringString constant for failed.static final StringString constant for no change.static final StringString constant for stacked.protected PropertyChangeListener(package private) SignalMastLogic(package private) SourceFields inherited from class jmri.implementation.AbstractNamedBean
listenerRefs, mSystemName, registerFields inherited from interface jmri.NamedBean
DISPLAY_NAME_FORMAT, INCONSISTENT, PROPERTY_COMMENT, PROPERTY_ENABLED, PROPERTY_KNOWN_STATE, PROPERTY_STATE, PROPERTY_USERNAME, QUOTED_NAME_FORMAT, UNKNOWN -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDestinationPoints(PointDetails point, String id, Source src) -
Method Summary
Modifier and TypeMethodDescription(package private) voidactiveBean(boolean reverseDirection) (package private) voidactiveBean(boolean reverseDirection, boolean showMessage) protected void(package private) voidcancelClearInterlock(int cancelClear) (package private) voidvoiddispose()Deactivate this object, so that it releases as many resources as possible and no longer effects others.For instances in the code where we are dealing with just a bean and a message needs to be passed to the user or in a log.(package private) int(package private) LayoutBlock(package private) List<LayoutBlock>(package private) NamedBeanintgetState()Provide generic access to internal state.(package private) boolean(package private) StringgetUsageReport(NamedBean bean) Get a list of references for the specified bean.(package private) voidhandleNoCurrentRoute(boolean reverse, String message) booleanisActive()booleanpublic for testing purposes.boolean(package private) booleanboolean(package private) voidremoveBlockFromRoute(LayoutBlock lBlock) protected voidsetActiveEntryExit(boolean boo) protected voidsetActiveEntryExit(boolean boo, boolean reversed) voidsetEnabled(boolean boo) (package private) voidsetEntryExitType(int type) voidsetInterlockRoute(boolean reverseDirection) (package private) voidsetRoute(boolean state) (package private) voidsetRouteFrom(boolean set) (package private) voidsetRouteTo(boolean set) voidsetState(int state) Provide generic access to internal state.(package private) voidsetUniDirection(boolean uni) Methods inherited from class jmri.implementation.AbstractNamedBean
addPropertyChangeListener, addPropertyChangeListener, addPropertyChangeListener, addPropertyChangeListener, compareSystemNameSuffix, describeState, equals, firePropertyChange, getComment, getDisplayName, getDisplayName, getListenerRef, getListenerRefs, getNumPropertyChangeListeners, getProperty, getPropertyChangeListeners, getPropertyChangeListeners, getPropertyChangeListenersByReference, getPropertyKeys, getSystemName, getUserName, hashCode, removeProperty, removePropertyChangeListener, removePropertyChangeListener, setComment, setProperty, setUserName, toString, toStringSuffix, updateListenerRef, vetoableChangeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface jmri.NamedBean
compareTo, getRecommendedToolTip
-
Field Details
-
PROPERTY_ACTIVE
String constant for active.- See Also:
-
PROPERTY_NO_CHANGE
String constant for no change.- See Also:
-
PROPERTY_STACKED
String constant for stacked.- See Also:
-
PROPERTY_FAILED
String constant for failed.- See Also:
-
point
-
entryExitType
int entryExitType -
manager
-
sml
-
NXMESSAGEBOXCLEARTIMEOUT
- See Also:
-
src
-
propertyBlockListener
-
lastSeenActiveBlockObject
-
jButton_Stack
-
-
Constructor Details
-
DestinationPoints
-
-
Method Details
-
getBeanType
Description copied from interface:NamedBeanFor instances in the code where we are dealing with just a bean and a message needs to be passed to the user or in a log.- Returns:
- a string of the bean type, eg Turnout, Sensor etc
-
isEnabled
public for testing purposes.- Returns:
- true if enabled, else false.
-
setEnabled
-
getUniqueId
-
getDestPoint
-
getSource
- Returns:
- source.
- Since:
- 4.17.4 Making the source object available for scripting in Jython.
-
getUniDirection
boolean getUniDirection() -
setUniDirection
-
getSignal
-
setRouteTo
-
setRouteFrom
-
isRouteToPointSet
boolean isRouteToPointSet() -
getFacing
-
getProtecting
-
getEntryExitType
int getEntryExitType() -
setEntryExitType
-
blockStateUpdated
-
removeBlockFromRoute
-
setRoute
-
cancelClearOptionBox
void cancelClearOptionBox() -
cancelClearInterlock
-
setInterlockRoute
-
activeBean
-
activeBean
-
handleNoCurrentRoute
-
dispose
Description copied from class:AbstractNamedBeanDeactivate this object, so that it releases as many resources as possible and no longer effects others.For example, if this object has listeners, after a call to this method it should no longer notify those listeners. Any native or system-wide resources it maintains should be released, including threads, files, etc.
It is an error to invoke any other methods on this object once dispose() has been called. Note, however, that there is no guarantee about behavior in that case.
Afterwards, references to this object may still exist elsewhere, preventing its garbage collection. But it's formally dead, and shouldn't be keeping any other objects alive. Therefore, this method should null out any references to other objects that this NamedBean contained.
- Specified by:
disposein interfaceNamedBean- Overrides:
disposein classAbstractNamedBean
-
getState
Description copied from interface:NamedBeanProvide generic access to internal state.This generally shouldn't be used by Java code; use the class-specific form instead (e.g. getCommandedState in Turnout). This is provided to make scripts easier to read.
- Returns:
- the state
-
isActive
-
isReversed
-
isUniDirection
-
setState
Description copied from interface:NamedBeanProvide generic access to internal state.This generally shouldn't be used by Java code; use the class-specific form instead (e.g. setCommandedState in Turnout). This is provided to make scripts access easier to read.
- Parameters:
state- the state
-
setActiveEntryExit
-
setActiveEntryExit
-
getUsageReport
Description copied from interface:NamedBeanGet a list of references for the specified bean.- Parameters:
bean- The bean to be checked.- Returns:
- a list of NamedBeanUsageReports or an empty ArrayList.
-