public class Utils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SUPERBLOCK_SEP
separation string between Superblock and its child
|
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getChildLabel(java.lang.String fullLabel)
Extraction of child label from full block label.
|
static java.lang.String |
getFullLabel(org.scilab.modules.xcos.block.BasicBlock block)
This function gets the full label (=including parent Superblock labels) by walking through the parent Superblocks.
|
static java.lang.String |
getFullLabel(long blockId)
This function gets the full label (=including parent Superblock labels) by walking through the parent Superblocks.
|
static java.lang.String |
getInterfaceFunctionName(org.scilab.modules.xcos.block.BasicBlock block)
Returns Xcos Basic Block interface function.
|
static long |
getNextConnectedEventBlock(long eventBlockId)
This function checks all event outputs of an event block for the next connected X2C block.
|
static org.scilab.modules.xcos.graph.XcosDiagram |
getParentDiagram(org.scilab.modules.xcos.block.BasicBlock block) |
static java.lang.String |
getParentLabel(java.lang.String fullLabel)
Extraction of parent label (Superblock prefix) from full block label.
|
static XcosExprs |
getXcosExprs(long blockId)
Returns the Xcos expressions from a Xcos block identifier.
|
public static final java.lang.String SUPERBLOCK_SEP
public static java.lang.String getParentLabel(java.lang.String fullLabel)
fullLabel - public static java.lang.String getChildLabel(java.lang.String fullLabel)
fullLabel - public static java.lang.String getInterfaceFunctionName(org.scilab.modules.xcos.block.BasicBlock block)
block - Xcos Basic Blockpublic static org.scilab.modules.xcos.graph.XcosDiagram getParentDiagram(org.scilab.modules.xcos.block.BasicBlock block)
public static long getNextConnectedEventBlock(long eventBlockId)
SplitBlock type.eventBlockId - Event block identifierpublic static XcosExprs getXcosExprs(long blockId) throws java.lang.Exception
blockId - Xcos block identifierjava.lang.Exceptionpublic static java.lang.String getFullLabel(org.scilab.modules.xcos.block.BasicBlock block)
block - Xcos block handlepublic static java.lang.String getFullLabel(long blockId)
blockId - Xcos block identifierCopyright 2019 LCM. All rights reserved.