Package jmri.jmrit.entryexit
Class Source
- java.lang.Object
-
- jmri.jmrit.entryexit.Source
-
- All Implemented Interfaces:
java.beans.PropertyChangeListener
,java.util.EventListener
public class Source extends java.lang.Object implements java.beans.PropertyChangeListener
-
-
Field Summary
Fields Modifier and Type Field Description (package private) javax.swing.JMenuItem
cancel
(package private) javax.swing.JMenuItem
clear
(package private) javax.swing.JMenuItem
editCancel
(package private) javax.swing.JMenuItem
editClear
(package private) javax.swing.JMenuItem
editOneClick
(package private) EntryExitPairs
manager
(package private) javax.swing.JMenuItem
oneClick
(package private) PointDetails
pd
(package private) java.util.HashMap<PointDetails,DestinationPoints>
pointToDest
(package private) NamedBean
sourceObject
(package private) NamedBean
sourceSignal
-
Constructor Summary
Constructors Constructor Description Source(PointDetails point)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activeBean(DestinationPoints dest, boolean reverseDirection)
void
addDestination(PointDetails dest, java.lang.String id)
void
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Add property change listener.(package private) void
addSourceObject(NamedBean source)
boolean
canBeBiDirection(java.lang.Object dest, LayoutEditor panel)
(package private) void
cancelClearInterlockFromSource(int cancelClear)
void
cancelInterlock(java.lang.Object dest, LayoutEditor panel)
DestinationPoints
getByUniqueId(java.lang.String id)
DestinationPoints
getByUserName(java.lang.String id)
DestinationPoints
getDestForPoint(PointDetails dp)
java.util.ArrayList<PointDetails>
getDestinationPoints()
java.util.ArrayList<java.lang.String>
getDestinationUniqueId()
int
getEntryExitType(java.lang.Object dest, LayoutEditor panel)
int
getNumberOfDestinations()
PointDetails
getPoint()
(package private) java.lang.Object
getSourceObject()
(package private) java.util.List<LayoutBlock>
getSourceProtecting()
(package private) NamedBean
getSourceSignal()
(package private) LayoutBlock
getStart()
boolean
getUniDirection(java.lang.Object dest, LayoutEditor panel)
java.lang.String
getUniqueId(java.lang.Object dest, LayoutEditor panel)
boolean
isDestinationValid(PointDetails destPoint)
boolean
isEnabled(java.lang.Object dest, LayoutEditor panel)
boolean
isRouteActive(PointDetails endpoint)
void
propertyChange(java.beans.PropertyChangeEvent evt)
void
removeDestination(PointDetails dest)
void
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Remove property change listener.void
setEnabled(java.lang.Object dest, LayoutEditor panel, boolean boo)
void
setEntryExitType(java.lang.Object dest, LayoutEditor panel, int type)
(package private) void
setMenuEnabled(boolean boo)
void
setUniDirection(java.lang.Object dest, LayoutEditor panel, boolean set)
-
-
-
Field Detail
-
clear
javax.swing.JMenuItem clear
-
cancel
javax.swing.JMenuItem cancel
-
editCancel
javax.swing.JMenuItem editCancel
-
editClear
javax.swing.JMenuItem editClear
-
editOneClick
javax.swing.JMenuItem editOneClick
-
oneClick
javax.swing.JMenuItem oneClick
-
sourceObject
NamedBean sourceObject
-
sourceSignal
NamedBean sourceSignal
-
pd
transient PointDetails pd
-
manager
EntryExitPairs manager
-
pointToDest
transient java.util.HashMap<PointDetails,DestinationPoints> pointToDest
-
-
Constructor Detail
-
Source
public Source(PointDetails point)
-
-
Method Detail
-
isEnabled
public boolean isEnabled(java.lang.Object dest, LayoutEditor panel)
-
setEnabled
public void setEnabled(java.lang.Object dest, LayoutEditor panel, boolean boo)
-
addPropertyChangeListener
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Add property change listener.- Parameters:
listener
- the pcl to add.- Since:
- 4.17.4
-
removePropertyChangeListener
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Remove property change listener.- Parameters:
listener
- the pcl to remove.- Since:
- 4.17.4
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent evt)
- Specified by:
propertyChange
in interfacejava.beans.PropertyChangeListener
- Since:
- 4.17.4
-
cancelClearInterlockFromSource
void cancelClearInterlockFromSource(int cancelClear)
-
setMenuEnabled
void setMenuEnabled(boolean boo)
-
getPoint
public PointDetails getPoint()
- Returns:
- the point details.
- Since:
- 4.17.4 Making the source object available for scripting in Jython.
-
getStart
LayoutBlock getStart()
-
getSourceProtecting
java.util.List<LayoutBlock> getSourceProtecting()
-
getSourceSignal
NamedBean getSourceSignal()
-
addDestination
public void addDestination(PointDetails dest, java.lang.String id)
- Parameters:
dest
- the points details to add.id
- the points details id.- Since:
- 4.17.4 Add Property Change Listener.
-
removeDestination
public void removeDestination(PointDetails dest)
- Parameters:
dest
- the point details location to remove.- Since:
- 4.17.4 Remove Property Change Listener.
-
addSourceObject
void addSourceObject(NamedBean source)
-
getSourceObject
java.lang.Object getSourceObject()
-
getDestinationPoints
public java.util.ArrayList<PointDetails> getDestinationPoints()
-
isDestinationValid
public boolean isDestinationValid(PointDetails destPoint)
-
getUniDirection
public boolean getUniDirection(java.lang.Object dest, LayoutEditor panel)
-
setUniDirection
public void setUniDirection(java.lang.Object dest, LayoutEditor panel, boolean set)
-
canBeBiDirection
public boolean canBeBiDirection(java.lang.Object dest, LayoutEditor panel)
-
isRouteActive
public boolean isRouteActive(PointDetails endpoint)
-
activeBean
public void activeBean(DestinationPoints dest, boolean reverseDirection)
-
getDestForPoint
public DestinationPoints getDestForPoint(PointDetails dp)
-
getNumberOfDestinations
public int getNumberOfDestinations()
-
setEntryExitType
public void setEntryExitType(java.lang.Object dest, LayoutEditor panel, int type)
-
getEntryExitType
public int getEntryExitType(java.lang.Object dest, LayoutEditor panel)
-
cancelInterlock
public void cancelInterlock(java.lang.Object dest, LayoutEditor panel)
-
getUniqueId
public java.lang.String getUniqueId(java.lang.Object dest, LayoutEditor panel)
-
getDestinationUniqueId
public java.util.ArrayList<java.lang.String> getDestinationUniqueId()
-
getByUniqueId
public DestinationPoints getByUniqueId(java.lang.String id)
-
getByUserName
public DestinationPoints getByUserName(java.lang.String id)
-
-