|
||||||||||
| 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.implementation | Provides implementations of various JMRI interfaces. |
| jmri.jmrit.dispatcher | |
| jmri.jmrit.display.layoutEditor | |
| 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 userName)
|
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()
|
Block |
BlockManager.provideBlock(String name)
|
| Methods in jmri that return types with arguments of type Block | |
|---|---|
ArrayList<Block> |
SignalMastLogic.getAutoBlocks(SignalMast destination)
|
ArrayList<Block> |
Section.getBlockList()
Get a Copy of this Section's Block List |
ArrayList<Block> |
SignalMastLogic.getBlocks(SignalMast destination)
|
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 |
SignalMastLogic.getAutoBlockState(Block block,
SignalMast destination)
|
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 |
int |
SignalMastLogic.getBlockState(Block block,
SignalMast destination)
|
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 |
boolean |
SignalMastLogic.isBlockIncluded(Block block,
SignalMast destination)
|
void |
Path.setBlock(Block b)
|
| Method parameters in jmri with type arguments of type Block | |
|---|---|
boolean |
SignalMastLogic.areBlocksIncluded(ArrayList<Block> blks)
Returns true if any of the blocks in the supplied list are included in any of the logics that set this signal. |
void |
SignalMastLogic.setAutoBlocks(Hashtable<Block,Integer> blocks,
SignalMast destination)
Sets which blocks must be inactive for the signal not to be set at a stop aspect These blocks are not stored in the panel file. |
void |
SignalMastLogic.setBlocks(Hashtable<Block,Integer> blocks,
SignalMast destination)
Sets which blocks must be inactive for the signal not to be set at a stop aspect |
| 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.implementation |
|---|
| Methods in jmri.implementation that return types with arguments of type Block | |
|---|---|
ArrayList<Block> |
DefaultSignalMastLogic.getAutoBlocks(SignalMast destination)
|
ArrayList<Block> |
DefaultSignalMastLogic.getBlocks(SignalMast destination)
|
| Methods in jmri.implementation with parameters of type Block | |
|---|---|
int |
DefaultSignalMastLogic.getAutoBlockState(Block block,
SignalMast destination)
|
int |
DefaultSignalMastLogic.getBlockState(Block block,
SignalMast destination)
|
boolean |
DefaultSignalMastLogic.isBlockIncluded(Block block,
SignalMast destination)
|
| Method parameters in jmri.implementation with type arguments of type Block | |
|---|---|
boolean |
DefaultSignalMastLogic.areBlocksIncluded(ArrayList<Block> blks)
Returns true if any of the blocks in the supplied list are included in any of the logics that set this signal. |
void |
DefaultSignalMastLogic.setAutoBlocks(Hashtable<Block,Integer> blocks,
SignalMast destination)
Sets which blocks must be inactive for the signal not to be set at a stop aspect These blocks are not stored in the panel file. |
void |
DefaultSignalMastLogic.setBlocks(Hashtable<Block,Integer> blocks,
SignalMast destination)
Sets which blocks must be inactive for the signal not to be set at a stop aspect |
| Uses of Block in jmri.jmrit.dispatcher |
|---|
| Methods in jmri.jmrit.dispatcher that return Block | |
|---|---|
Block |
ActiveTrain.getEndBlock()
|
protected Block |
AllocatedSection.getEnterBlock(AllocatedSection previousAllocatedSection)
|
protected Block |
AllocatedSection.getExitBlock()
|
Block |
ActiveTrain.getStartBlock()
|
| Methods in jmri.jmrit.dispatcher with parameters of type Block | |
|---|---|
protected void |
AllocatedSection.addToActiveBlockList(Block b)
|
protected void |
AutoTrainAction.handleBlockStateChange(AllocatedSection as,
Block b)
|
protected void |
AutoActiveTrain.handleBlockStateChange(AllocatedSection as,
Block b)
|
protected boolean |
AllocatedSection.isInActiveBlockList(Block b)
|
protected void |
AllocatedSection.removeFromActiveBlockList(Block b)
|
void |
ActiveTrain.setEndBlock(Block eBlock)
|
void |
ActiveTrain.setStartBlock(Block sBlock)
|
| Uses of Block in jmri.jmrit.display.layoutEditor |
|---|
| Methods in jmri.jmrit.display.layoutEditor 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 |
LayoutBlock.getNeighbourAtIndex(int i)
Get the neighbouring block at index i |
Block |
LayoutBlock.getNextBlock(Block previousBlock,
Block destBlock)
Used if we already know the block prior to our block, and the destination block. |
Block |
LayoutBlock.getNextBlock(Block destBlock,
int direction)
|
Block |
TrackNode.getNodeBlock()
Returns the Block of the node Object at the nodeType position |
Block |
LayoutBlock.getRouteDestBlockAtIndex(int i)
Get the destination block at route i |
Block |
LayoutBlock.getRouteNextBlockAtIndex(int i)
Get the next block at route i |
Block |
LayoutBlock.getThroughPathDestination(int i)
Returns the destination block at index i |
Block |
LayoutBlock.getThroughPathSource(int i)
Returns the source block at index i |
| Methods in jmri.jmrit.display.layoutEditor that return types with arguments of type Block | |
|---|---|
ArrayList<Block> |
LayoutBlock.getActiveNextBlocks(Block source)
|
ArrayList<Block> |
ConnectivityUtil.getConnectedBlocks(Block block)
Returns a list of all Blocks connected to a specified Block |
| Methods in jmri.jmrit.display.layoutEditor 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<Block> |
LayoutBlock.getActiveNextBlocks(Block source)
|
ArrayList<PositionablePoint> |
ConnectivityUtil.getAnchorBoundariesThisBlock(Block block)
Returns a list of all anchor point boundaries involving the specified Block |
int |
LayoutBlock.getBlockHopCount(Block destination,
Block nextBlock)
Returns the number of layout blocks to our desintation block going from the next directly connected block. |
int |
LayoutBlock.getConnectedBlockRouteIndex(Block destBlock,
int direction)
|
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. |
SignalMast |
LayoutBlockManager.getFacingSignalMast(Block facingBlock)
Method to return a Signal Mast facing into a specific Block. |
SignalMast |
LayoutBlockManager.getFacingSignalMast(Block facingBlock,
Block protectedBlock)
Method to return the Signal Mast facing into a specified Block from a specified protected Block. |
Object |
LayoutBlockManager.getFacingSignalObject(Block facingBlock,
Block protectedBlock)
Returns in the first instance a Signal Mast or if none exists a Signal Head for a given facing block and protected block combination. |
LayoutBlock |
LayoutBlockManager.getLayoutBlock(Block 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. |
int |
LayoutBlock.getNextBestBlock(Block previousBlock,
Block destBlock,
int lastIndex,
int routingMethod)
last index - the index of the last block we returned ie we last returned index 10, so we don't want to return it again. |
Block |
LayoutBlock.getNextBlock(Block previousBlock,
Block destBlock)
Used if we already know the block prior to our block, and the destination block. |
Block |
LayoutBlock.getNextBlock(Block destBlock,
int direction)
|
int |
LayoutBlock.getNextBlockByIndex(Block previousBlock,
Block destBlock,
int offSet)
|
int |
LayoutBlock.getNextBlockByIndex(Block destBlock,
int direction,
int offSet)
|
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 |
int |
LayoutBlock.getThroughPathIndex(Block sourceBlock,
Block destinationBlock)
|
ArrayList<LayoutTurnout> |
ConnectivityUtil.getTurnoutList(Block block,
Block prevBlock,
Block nextBlock)
Provides a list of LayoutTurnouts in a specified Block (block), in order, beginning at the connection to the specified previous Block (prevBlock) and continuing to the specfied next 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. |
boolean |
LayoutBlock.isRouteToDestValid(Block protecting,
Block destination)
Is the route to the destination block, going via our neighbouring block valid. |
boolean |
LayoutBlock.validThroughPath(Block sourceBlock,
Block destinationBlock)
|
| Uses of Block in jmri.jmrit.logix |
|---|
| Subclasses of Block in jmri.jmrit.logix | |
|---|---|
class |
OBlock
OBlock extends jmri.Block to be used in Logix Conditionals and Warrants. |
| 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 | |||||||||