|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use Block | |
|---|---|
| jmri | Provides basic interfaces and certain core implementations for the JMRI layout management concepts. |
| jmri.configurexml | Provides an XML-based mechanism for storing and restoring configurations. |
| jmri.jmrit.dispatcher | |
| jmri.jmrit.display | Control panel and visible icon classes. |
| jmri.jmrit.logix | |
| jmri.jmrit.tracker | Provides support for tracking trains as they move around a layout. |
| Uses of Block in jmri |
|---|
| Methods in jmri that return Block | |
|---|---|
Block |
BlockManager.createNewBlock(String systemName,
String userName)
Method to create a new Block if it does not exist Returns null if a Block with the same systemName or userName already exists, or if there is trouble creating a new Block. |
Block |
Path.getBlock()
|
Block |
EntryPoint.getBlock()
Access methods |
Block |
BlockManager.getBlock(String name)
Method to get an existing Block. |
Block |
Section.getBlockBySequenceNumber(int seqNumber)
Get Block by its Sequence number in the Block list Blocks are numbered 0 to size-1; |
Block |
BlockManager.getBySystemName(String name)
|
Block |
BlockManager.getByUserName(String key)
|
Block |
Section.getEntryBlock()
|
Block |
EntryPoint.getFromBlock()
|
Block |
Section.getNextBlock()
|
| Methods in jmri that return types with arguments of type Block | |
|---|---|
ArrayList<Block> |
Section.getBlockList()
Get a Copy of this Section's Block List |
ArrayList<Block> |
Transit.getDestinationBlocksList(Block startBlock,
boolean startInTransit)
Get a list of all destination blocks that can be reached from a specified starting block, "startBlock". |
ArrayList<Block> |
Transit.getEntryBlocksList()
Get a list of all entry blocks to this Transit. |
ArrayList<Block> |
Transit.getInternalBlocksList()
Get a list of all blocks internal to this Transit Since Sections may be present more than once, blocks may be listed more than once. |
| Methods in jmri with parameters of type Block | |
|---|---|
boolean |
Section.addBlock(Block b)
Add a Block to the Section Block and sequence number must be unique within the Section. |
boolean |
Section.connectsToBlock(Block b)
|
boolean |
Transit.containsBlock(Block b)
Test if a Block is in the Transit |
boolean |
Section.containsBlock(Block b)
|
int |
Transit.getBlockCount(Block b)
Count the number of times a Block is in this Transit |
int |
Section.getBlockSequenceNumber(Block b)
Get the sequence number of a Block Returns -1 if Block is not in the Section |
ArrayList<Block> |
Transit.getDestinationBlocksList(Block startBlock,
boolean startInTransit)
Get a list of all destination blocks that can be reached from a specified starting block, "startBlock". |
EntryPoint |
Section.getEntryPointFromBlock(Block b,
int dir)
Returns the EntryPoint for entry from specified Block for travel in specified direction Returns 'null' if not found. |
EntryPoint |
Section.getExitPointToBlock(Block b,
int dir)
Returns the EntryPoint for exit to specified Block for travel in specified direction Returns 'null' if not found. |
Section |
Transit.getSectionFromBlockAndSeq(Block b,
int seq)
Returns a Section from one of its Blocks and its sequence number |
Section |
Transit.getSectionFromConnectedBlockAndSeq(Block b,
int seq)
Returns a Section from one of its EntryPoint Blocks and its sequence number |
void |
Path.setBlock(Block b)
|
| Constructors in jmri with parameters of type Block | |
|---|---|
EntryPoint(Block b,
Block pb,
String fbDir)
|
|
Path(Block dest,
int toBlockDirection,
int fromBlockDirection)
Convenience constructor to set the destination/source block and directions in one call. |
|
Path(Block dest,
int toBlockDirection,
int fromBlockDirection,
BeanSetting setting)
Convenience constructor to set the destination/source block, directions and a single setting element in one call. |
|
| Uses of Block in jmri.configurexml |
|---|
| Methods in jmri.configurexml with parameters of type Block | |
|---|---|
void |
BlockManagerXml.loadPath(Block block,
Element element)
Load path into an existing Block. |
| Uses of Block in jmri.jmrit.dispatcher |
|---|
| Methods in jmri.jmrit.dispatcher that return Block | |
|---|---|
Block |
ActiveTrain.getEndBlock()
|
Block |
ActiveTrain.getStartBlock()
|
| Methods in jmri.jmrit.dispatcher with parameters of type Block | |
|---|---|
void |
ActiveTrain.setEndBlock(Block eBlock)
|
void |
ActiveTrain.setStartBlock(Block sBlock)
|
| Uses of Block in jmri.jmrit.display |
|---|
| Methods in jmri.jmrit.display that return Block | |
|---|---|
Block |
LayoutBlock.getBlock()
Get the jmri.Block corresponding to this LayoutBlock |
Block |
ConnectivityUtil.getExitBlockForTrackNode(TrackNode node,
Block excludedBlock)
Returns an "exit block" for the specified track node if there is one, else returns null. |
Block |
TrackNode.getNodeBlock()
Returns the Block of the node Object at the nodeType position |
| Methods in jmri.jmrit.display that return types with arguments of type Block | |
|---|---|
ArrayList<Block> |
ConnectivityUtil.getConnectedBlocks(Block block)
Returns a list of all Blocks connected to a specified Block |
| Methods in jmri.jmrit.display with parameters of type Block | |
|---|---|
boolean |
ConnectivityUtil.blockInternalToLevelXing(LevelXing x,
Block block)
Returns 'true' if the specified block is internal to the Level Xing, and if all else is OK. |
ArrayList<PositionablePoint> |
ConnectivityUtil.getAnchorBoundariesThisBlock(Block block)
Returns a list of all anchor point boundaries involving the specified Block |
ArrayList<Block> |
ConnectivityUtil.getConnectedBlocks(Block block)
Returns a list of all Blocks connected to a specified Block |
Block |
ConnectivityUtil.getExitBlockForTrackNode(TrackNode node,
Block excludedBlock)
Returns an "exit block" for the specified track node if there is one, else returns null. |
SignalHead |
LayoutBlockManager.getFacingSignalHead(Block facingBlock,
Block protectedBlock)
Method to return the Signal Head facing into a specified Block from a specified protected Block. |
ArrayList<LayoutTurnout> |
ConnectivityUtil.getLayoutTurnoutsThisBlock(Block block)
Returns a list of all layout turnouts involving the specified Block |
ArrayList<LevelXing> |
ConnectivityUtil.getLevelCrossingsThisBlock(Block block)
Returns a list of all levelXings involving the specified Block. |
SignalHead |
ConnectivityUtil.getSignalHeadAtAnchor(PositionablePoint p,
Block block,
boolean facing)
Returns the Signal Head at the Anchor block boundary If 'facing' is 'true', returns the head that faces toward the specified Block If 'facing' is 'false', returns the head that faces away from the specified Block |
SignalHead |
ConnectivityUtil.getSignalHeadAtLevelXing(LevelXing x,
Block block,
boolean facing)
Returns the Signal Head at the level crossing If 'facing' is 'true', returns the head that faces toward the specified Block If 'facing' is 'false', returns the head that faces away from the specified Block |
ArrayList<LayoutTurnout> |
ConnectivityUtil.getTurnoutList(Block block,
Block prevBlock,
Block nextBlock)
|
boolean |
ConnectivityUtil.isInternalLevelXingAC(LevelXing x,
Block block)
Checks if a Level Crossing's AC track and its two connecting Track Segments are internal to the specified block. |
boolean |
ConnectivityUtil.isInternalLevelXingBD(LevelXing x,
Block block)
Checks if a Level Crossing's BD track and its two connecting Track Segments are internal to the specified block. |
| Uses of Block in jmri.jmrit.logix |
|---|
| Subclasses of Block in jmri.jmrit.logix | |
|---|---|
class |
OBlock
Extends jmri.Block to be used in Logix Conditionals. |
| Methods in jmri.jmrit.logix with parameters of type Block | |
|---|---|
void |
OPath.setBlock(Block block)
|
| Constructors in jmri.jmrit.logix with parameters of type Block | |
|---|---|
OPath(Block owner,
int toBlockDirection,
int fromBlockDirection)
|
|
OPath(Block owner,
int toBlockDirection,
int fromBlockDirection,
BeanSetting setting)
|
|
OPath(Block owner,
String name)
Create an object with default directions of NONE, and no setting element. |
|
| Uses of Block in jmri.jmrit.tracker |
|---|
| Constructors in jmri.jmrit.tracker with parameters of type Block | |
|---|---|
MemoryTracker(Block b,
String namePrefix)
Create a Tracker object, providing a list of blocks to watch |
|
StoppingBlock(Block b)
|
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||