|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ProgrammerManager
Get access to available Programmer objects.
Programmers come in two types:
Programmer object from a ProgrammerManager, which in turn can be located
from the InstanceManager.
The ProgramerManager also provides a reserve/release system for tools that want to pretend they have exclusive use of a Programmer. This is a cooperative reservation; both tools (first and second reserver) must be using the reserve/release interface.
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.
Programmer| Method Summary | |
|---|---|
Programmer |
getAddressedProgrammer(boolean pLongAddress,
int pAddress)
Gain access to a Addressed Mode Programmer without reservation. |
Programmer |
getGlobalProgrammer()
Gain access to the Global Mode Programmer without reservation. |
boolean |
isAddressedModePossible()
Convenience method to check whether you'll be able to get an Addressed Mode programmer. |
boolean |
isGlobalProgrammerAvailable()
Convenience method to check whether you'll be able to get a Global Mode programmer. |
void |
releaseAddressedProgrammer(Programmer p)
Return access to the Global Mode Programmer, so that it can be used elsewhere. |
void |
releaseGlobalProgrammer(Programmer p)
Return access to the Global Mode Programmer, so that it can be used elsewhere. |
Programmer |
reserveAddressedProgrammer(boolean pLongAddress,
int pAddress)
Gain access to a (the) Addressed Mode Programmer, in the process reserving it for yourself. |
Programmer |
reserveGlobalProgrammer()
Gain access to the Global Mode Programmer, in the process reserving it for yourself. |
| Method Detail |
|---|
Programmer getGlobalProgrammer()
Programmer getAddressedProgrammer(boolean pLongAddress,
int pAddress)
pLongAddress - true if this is a long (14 bit) address, else falsepAddress - Specific decoder address to use.
Programmer reserveGlobalProgrammer()
void releaseGlobalProgrammer(Programmer p)
Programmer reserveAddressedProgrammer(boolean pLongAddress,
int pAddress)
pLongAddress - true if this is a long (14 bit) address, else falsepAddress - Specific decoder address to use.
void releaseAddressedProgrammer(Programmer p)
boolean isGlobalProgrammerAvailable()
boolean isAddressedModePossible()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||