|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SensorManager
Interface for controlling sensors.
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 | |
|---|---|
boolean |
allowMultipleAdditions(String systemName)
A method that determines if it is possible to add a range of sensors in numerical order eg 10 to 30 will return true. |
String |
createSystemName(String curAddress,
String prefix)
|
void |
dispose()
Free resources when no longer used. |
Sensor |
getBySystemName(String s)
|
Sensor |
getByUserName(String s)
|
long |
getDefaultSensorDebounceGoingActive()
|
long |
getDefaultSensorDebounceGoingInActive()
|
String |
getNextValidAddress(String curAddress,
String prefix)
Determine if the address supplied is valid and free, if not then it shall return the next free valid address up to a maximum of 10 address away from the initial address. |
Sensor |
getSensor(String name)
Locate via user name, then system name if needed. |
List<String> |
getSystemNameList()
|
Sensor |
newSensor(String systemName,
String userName)
Return an instance with the specified system and user names. |
Sensor |
provideSensor(String name)
Locate via user name, then system name if needed. |
void |
setDefaultSensorDebounceGoingActive(long timer)
|
void |
setDefaultSensorDebounceGoingInActive(long timer)
|
void |
updateAll()
Requests status of all layout sensors under this Sensor Manager. |
| Methods inherited from interface jmri.Manager |
|---|
addPropertyChangeListener, deregister, getBeanBySystemName, getBeanByUserName, getNamedBean, getNamedBeanList, getSystemNameArray, getSystemPrefix, getXMLOrder, makeSystemName, register, removePropertyChangeListener, systemLetter, typeLetter |
| Method Detail |
|---|
Sensor provideSensor(String name)
name - User name, system name, or address which
can be promoted to system name
IllegalArgumentException - if Sensor doesn't
already exist and the manager cannot create the Sensor
due to e.g. an illegal name or name that can't be parsed.Sensor getSensor(String name)
name -
void dispose()
Manager
dispose in interface Manager
Sensor newSensor(String systemName,
String userName)
This will always return a valid object reference; a new object will be created if necessary. In that case:
IllegalArgumentException - if cannot create the Sensor
due to e.g. an illegal name or name that can't be parsed.Sensor getByUserName(String s)
Sensor getBySystemName(String s)
List<String> getSystemNameList()
getSystemNameList in interface Managervoid updateAll()
boolean allowMultipleAdditions(String systemName)
String getNextValidAddress(String curAddress,
String prefix)
throws JmriException
prefix - - The System Prefix used to make up the systemNamecurAddress - - The hardware address of the turnout we which to check.
JmriException
String createSystemName(String curAddress,
String prefix)
throws JmriException
JmriExceptionlong getDefaultSensorDebounceGoingActive()
long getDefaultSensorDebounceGoingInActive()
void setDefaultSensorDebounceGoingActive(long timer)
void setDefaultSensorDebounceGoingInActive(long timer)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||