public class PrepareFromSlx
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
PrepareFromSlx.FuncOperators
Data class to store function string and operators to replace the Simulink function definition with Java rotines
|
(package private) class |
PrepareFromSlx.LineEndInfo
It is an Object as result of the ctor-Routin aus Functinal Programming.
|
private class |
PrepareFromSlx.LineStartInfo
It is an Object as result of the ctor-Routin aus Functinal Programming.
|
(package private) static class |
PrepareFromSlx.NrInt |
Modifier and Type | Field and Description |
---|---|
(package private) CmdArgs_ReadSlx_FBCLrd |
args |
(package private) boolean |
bRecursiveInterrupted |
private java.lang.String |
indent |
(package private) java.util.Map<java.lang.String,SlxData> |
libSlx
References already read slx files from libraries.
|
(package private) ProcessSlxBlocks_Slx |
prcFBx |
(package private) Prj_FBCLrd |
prj |
(package private) WriterDataFBcl |
wrDataFBcl |
(package private) WriterFBCL |
wrFBcl |
(package private) WriterXmlFBCL |
wrXmlFBt |
Constructor and Description |
---|
PrepareFromSlx(CmdArgs_ReadSlx_FBCLrd args,
Prj_FBCLrd prj)
Creates a reader for Simulink
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
adjustNameFBlock(SlxData.Module_SlxData mdlx) |
private void |
associateInputsWithEvent(Write_Module_FBwr mdlwr) |
(package private) void |
associateLines(SlxData.Module_SlxData mdlx,
Module_FBcl moduleBlock) |
(package private) void |
associateLinesToFBx(SlxData.Module_SlxData mdlx) |
private Write_Module_FBwr |
createFBlocksFromSlx(SlxData.Module_SlxData slxBlockOfModule)
Prepares the data from an slx module block to a
FBlock_FBcl structure and generates the Java code for the blocks. |
(package private) void |
gatherLabelGoto(SlxData.Module_SlxData slxBlockOfModule) |
private Block_SlxData |
getBlockPerSidReplaceFrom(SlxData.Module_SlxData slxBlockOfModule,
java.lang.String sid) |
private java.lang.CharSequence |
prcLineName(PrepareFromSlx.LineStartInfo outStart,
java.lang.String lineName) |
Module_FBcl |
prepareFromSlx(SlxData.Module_SlxData slxBlockOfModule,
XmlJzReader xmlReader,
int recursion)
Prepares the data from an slx module block to a
FBlock_FBcl structure and generates the Java code for the blocks. |
(package private) SlxData |
readSlxFile(java.io.File slxFile)
Reads a slx file
|
Module_FBcl |
searchAndPrepareFromSlx(java.lang.String filename,
SlxData.Module_SlxData module,
java.lang.String nameModuleSlx,
int recursionSearchTopBlock) |
private void |
searchFBlockToSlx(Block_SlxData fbx,
Write_Module_FBwr mdlwr) |
final WriterFBCL wrFBcl
final WriterXmlFBCL wrXmlFBt
final WriterDataFBcl wrDataFBcl
final CmdArgs_ReadSlx_FBCLrd args
final Prj_FBCLrd prj
final ProcessSlxBlocks_Slx prcFBx
boolean bRecursiveInterrupted
final java.util.Map<java.lang.String,SlxData> libSlx
private java.lang.String indent
public PrepareFromSlx(CmdArgs_ReadSlx_FBCLrd args, Prj_FBCLrd prj)
args
- prj
- SlxData readSlxFile(java.io.File slxFile)
slxFile
- public Module_FBcl searchAndPrepareFromSlx(java.lang.String filename, SlxData.Module_SlxData module, java.lang.String nameModuleSlx, int recursionSearchTopBlock) throws java.io.IOException
java.io.IOException
public Module_FBcl prepareFromSlx(SlxData.Module_SlxData slxBlockOfModule, XmlJzReader xmlReader, int recursion) throws java.io.IOException
FBlock_FBcl
structure and generates the Java code for the blocks.
This routine is called recursively for the sub model if a Submodule block is used in the model maybe via a library block too.
The recursively translation to Java is necessary because the submodule block can consist of more as one part,
which should be invoked specific in the order of calculation or in several step times.slx
- nameModule
- args
- prj
- recursion
- should be >0 check for recursion deepnessjava.io.IOException
private void associateInputsWithEvent(Write_Module_FBwr mdlwr)
private Write_Module_FBwr createFBlocksFromSlx(SlxData.Module_SlxData slxBlockOfModule) throws java.io.IOException
FBlock_FBcl
structure and generates the Java code for the blocks.
This routine is called recursively for the sub model if a Submodule block is used in the model maybe via a library block too.
The recursively translation to Java is necessary because the submodule block can consist of more as one part,
which should be invoked specific in the order of calculation or in several step times.slx
- nameModule
- args
- prj
- recursion
- should be >0 check for recursion deepnessjava.io.IOException
private void searchFBlockToSlx(Block_SlxData fbx, Write_Module_FBwr mdlwr) throws java.io.IOException
java.io.IOException
void gatherLabelGoto(SlxData.Module_SlxData slxBlockOfModule)
void associateLines(SlxData.Module_SlxData mdlx, Module_FBcl moduleBlock)
void associateLinesToFBx(SlxData.Module_SlxData mdlx)
void adjustNameFBlock(SlxData.Module_SlxData mdlx)
private java.lang.CharSequence prcLineName(PrepareFromSlx.LineStartInfo outStart, java.lang.String lineName)
private Block_SlxData getBlockPerSidReplaceFrom(SlxData.Module_SlxData slxBlockOfModule, java.lang.String sid)