public abstract class AbstractPrimaryBlock extends AbstractBlock implements PrimaryBlock
Block.Extremity, Block.Type
Modifier and Type | Field and Description |
---|---|
protected List<Node> |
nodes |
protected List<PrimaryBlock> |
stackableBlocks |
type
Modifier and Type | Method and Description |
---|---|
void |
addStackableBlock(PrimaryBlock block) |
Node |
getExtremityNode(Block.Extremity extremity) |
Graph |
getGraph() |
List<Node> |
getNodes() |
int |
getOrder() |
List<PrimaryBlock> |
getStackableBlocks() |
boolean |
isEmbedingNodeType(Node.NodeType type) |
void |
reverseBlock() |
String |
toString() |
protected void |
writeJsonContent(com.fasterxml.jackson.core.JsonGenerator generator) |
calculateCoord, calculateRootCoord, getCardinality, getCardinality, getCell, getCoord, getEndingNode, getExtremity, getParentBlock, getPosition, getStartingNode, getType, setCardinality, setCell, setOrientation, setParentBlock, setX, setXSpan, setY, setYSpan, writeJson
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
calculateCoord, calculateRootCoord, coordHorizontalCase, coordVerticalCase, getCardinality, getCardinality, getCell, getCoord, getEndingNode, getExtremity, getPosition, getStartingNode, getType, setCardinality, setCell, setOrientation, setParentBlock, setX, setXSpan, setY, setYSpan, sizing, writeJson
protected final List<PrimaryBlock> stackableBlocks
public boolean isEmbedingNodeType(Node.NodeType type)
isEmbedingNodeType
in interface Block
public List<Node> getNodes()
getNodes
in interface PrimaryBlock
public void reverseBlock()
reverseBlock
in interface Block
public Node getExtremityNode(Block.Extremity extremity)
getExtremityNode
in interface Block
public void addStackableBlock(PrimaryBlock block)
public List<PrimaryBlock> getStackableBlocks()
protected void writeJsonContent(com.fasterxml.jackson.core.JsonGenerator generator) throws IOException
writeJsonContent
in class AbstractBlock
IOException
Copyright © 2019. All rights reserved.