public class StaticSwitch
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
StaticSwitch(int id)
Constructs the Static Switch.
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(StaticBlock block)
Check if switch contains a block
|
StaticBlock |
getActiveLeaf()
Gets the active leaf.
|
StaticBlock |
getDefaultLeaf()
Gets the default leaf.
|
int |
getId() |
StaticBlock |
getRoot()
Gets the root of the switch.
|
protected StaticBlock |
setActiveLeaf(StaticBlock activeLeaf)
Sets the active leaf.
|
protected StaticBlock |
setDefaultLeaf(StaticBlock defaultLeaf)
Sets the default leaf.
|
protected StaticBlock |
setRoot(StaticBlock root)
Sets the root of the switch.
|
protected StaticSwitch(int id)
id
- The identifierpublic int getId()
public StaticBlock getRoot()
protected StaticBlock setRoot(StaticBlock root)
root
- The rootpublic StaticBlock getDefaultLeaf()
protected StaticBlock setDefaultLeaf(StaticBlock defaultLeaf)
defaultLeaf
- The default leafpublic StaticBlock getActiveLeaf()
protected StaticBlock setActiveLeaf(StaticBlock activeLeaf)
activeLeaf
- The active leafpublic boolean contains(StaticBlock block)
block
- The block