public interface PointingBlockSetInterface
Modifier and Type | Method and Description |
---|---|
void |
addBlock(PointingBlockInterface newBlock)
Add a new block to the given segment
|
PointingBlockInterface |
blockAfter(PointingBlockInterface block) |
PointingBlockInterface |
blockBefore(PointingBlockInterface block)
Get the block before the one given (before the start time the block), or null if there is no block before this one
|
PointingBlockSetInterface |
getAllBlocksOfType(java.lang.String blockType)
Get all blocks of a given type
|
PointingBlock |
getBlockAt(java.util.Date time)
Get the block with a start time equal to the given one or the greates value before the given date
|
PointingBlockInterface[] |
getBlocks()
Get all the blocks in this segment
|
PointingBlockSetInterface |
getBlocksAt(java.util.Date startTime,
java.util.Date endTime) |
java.lang.String |
getName()
Get the name of this segment
|
void |
regenerate(PointingBlockSetInterface slice) |
void |
removeBlock(PointingBlockInterface block)
Remove a block from the segment.
|
void |
removeBlocks(PointingBlock[] blocks) |
void |
setBlocks(PointingBlockInterface[] newBlocks)
Remove all currents blocks and substitute by the given ones
|
void |
setName(java.lang.String newName)
Set or replace the name of this segment
|
void |
setSlice(PointingBlockSetInterface slice) |
java.lang.String |
toXml(int indent)
Get the XML representation of this segment as per FD ICD
|
void regenerate(PointingBlockSetInterface slice)
java.lang.String getName()
void setName(java.lang.String newName)
newName
- void removeBlock(PointingBlockInterface block)
block
- Block to be removedPointingBlockInterface blockBefore(PointingBlockInterface block)
block
- PointingBlockInterface blockAfter(PointingBlockInterface block)
void addBlock(PointingBlockInterface newBlock)
newBlock
- Block to be addedPointingBlockInterface[] getBlocks()
void setBlocks(PointingBlockInterface[] newBlocks)
newBlocks
- New blocks to replace the current onesjava.lang.String toXml(int indent)
indent
- the Number of tabs to be added before each linePointingBlock getBlockAt(java.util.Date time)
time
- The desired timePointingBlockSetInterface getBlocksAt(java.util.Date startTime, java.util.Date endTime)
void removeBlocks(PointingBlock[] blocks)
PointingBlockSetInterface getAllBlocksOfType(java.lang.String blockType)
blockType
- type of blocks to search forvoid setSlice(PointingBlockSetInterface slice)