public class Prj_FBCLrd
extends java.lang.Object
stdFBlocks
: all common used FBlocks.
idxAllFBlockType
all already read library or other modules.
FBtype_FBcl
as member.
The String is the type name.Modifier and Type | Field and Description |
---|---|
OFBconv.CmdArgs |
args |
(package private) boolean |
bLogOperationOfCluster |
static java.lang.String |
dbgNameClass |
static java.lang.String |
dbgNameOperation |
static java.lang.String |
dbgNameStepOperation |
static java.lang.String |
debugBlock |
static java.lang.String |
debugBlockGlobalNameTypePropagation |
static java.lang.String |
debugBlockname_toProcess |
static java.lang.String |
debugBlockNameInLib_ReplaceConnections |
static java.lang.String |
debugBlocknameSortBlocks |
static java.lang.String |
debugBlockNameTypePropagation |
static java.lang.String |
debugCallBlockForTranslation |
static java.lang.String |
debugClassForTranslation |
static java.lang.String |
debugConNameGenExpr |
static java.lang.String |
debugCreateBlockOfOperations |
static java.lang.String |
debugGenJavaOperationname |
static java.lang.String |
debugLibBlock |
static java.lang.String |
debugLibBlockLibName |
static java.lang.String |
debugModuleForTranslation |
static java.lang.String |
debugModuleNamePrepareFromSlx |
static java.lang.String |
debugModuleNameTypePropagation |
static java.lang.String |
debugNameClassVar |
static java.lang.String |
debugNameOutblockPart |
static java.lang.String |
debugNameOutVariable |
static java.lang.String |
debugNamePredefBlock |
static java.lang.String |
debugNameTypePropSubmodule |
static java.lang.String |
debugSignalnameOutportCompleteFBlock_Operation |
static java.lang.String |
debugSlxBlockType |
static java.lang.String |
debugSlxLineName |
static java.lang.String |
debugSlxName |
static java.lang.String |
debugSlxName2 |
static java.lang.String |
debugSubmodulename_toSearchAndTranslate |
(package private) java.lang.Exception |
excLog |
WriterFBCL |
fbclWriter |
private FBtype_FBcl.Ctor |
fBlockType_ctor
This is an agent instance to access to the protected ctor of
FBtype_FBcl . |
java.util.Map<java.lang.String,FBtype_FBcl> |
idxAllFBlockType
All library blocks should be translated first or read from an interface file (TODO).
|
java.util.Map<java.lang.String,Write_Module_FBwr> |
idxWriteModules
Storage for all already read and converted sub modules working in progress (... to write).
|
org.vishia.msgDispatch.LogMessage |
log |
int |
maxRecursionSubmodule |
(package private) int |
nIdent |
ReaderFBcl |
readerFBcl
All library blocks should be translated first or read from an interface file (TODO).
|
(package private) java.lang.String |
sIdent |
StdLibFBlocks_FBcl |
stdFBlocks |
(package private) java.lang.StringBuilder |
sTranslationInfo
The default data type for all not determined inputs, which are open.
|
TranslationScripts |
trlScripts |
java.util.Map<java.lang.String,DType_FBcl> |
userDataTypes
User data types are not presented by a FBlock.
|
WriterDataFBcl |
wrDataFBcl |
WriterCodegen |
writerCodegen |
static Prj_FBCLrd |
XXXsingleton |
Constructor and Description |
---|
Prj_FBCLrd(org.vishia.msgDispatch.LogMessage cmdlog,
OFBconv.CmdArgs args)
Constructor for the singleton project data of the translator.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
(package private) void |
dataTypeError(DinoutType_FBcl con1,
DinoutType_FBcl con2) |
void |
errorMsg(java.lang.String msg,
java.lang.Object... params) |
void |
errorMsgAdd(java.lang.String msg,
java.lang.Object... params) |
DType_FBcl |
getCreateDataType(java.lang.String sType,
int[] sizeArray)
The depId should not play a role, not for FBype
|
DType_FBcl |
getCreateDataType(java.lang.String sType,
int[] sizeArray,
int depId)
Tries to get the sType from the
DType_FBcl.getStdType(String) . |
FBtype_FBcl |
getCreateFBlockType(FBlock_FBcl.Blocktype kind,
java.lang.String name,
Module_FBcl mdl)
Gets an already created FBlockType or creates an empty new one.
|
DType_FBcl |
getCreateUserDataType(FBtype_FBcl fbref)
Gets or creates a reference type associated to a
FBtype_FBcl |
FBtype_FBcl |
getTypeFB(java.lang.String name) |
void |
infoMsg(java.lang.String msg,
java.lang.Object... params) |
void |
readSpecificLibFiles()
Reads that files which are specific named by command line args,
especially -ifbd:path/to*file.fbd to read IEC61499 source files which describes the interface to S-Functions in target language.
|
void |
throwModelError(FBlock_FBcl block,
DinoutType_FBcl con,
java.lang.String nameConn,
java.lang.String msg) |
void |
writeError(java.lang.String error,
java.lang.Exception exc)
Central routine to write any error message.
|
void |
writeTranslationInfo(java.lang.String error) |
DType_FBcl |
XXXgetCreateUserDataType(java.lang.String sType) |
public static Prj_FBCLrd XXXsingleton
public final TranslationScripts trlScripts
public final OFBconv.CmdArgs args
public final StdLibFBlocks_FBcl stdFBlocks
public final java.util.Map<java.lang.String,Write_Module_FBwr> idxWriteModules
public java.util.Map<java.lang.String,FBtype_FBcl> idxAllFBlockType
public java.util.Map<java.lang.String,DType_FBcl> userDataTypes
public final ReaderFBcl readerFBcl
public final WriterFBCL fbclWriter
public final WriterCodegen writerCodegen
public final WriterDataFBcl wrDataFBcl
java.lang.StringBuilder sTranslationInfo
public final org.vishia.msgDispatch.LogMessage log
java.lang.Exception excLog
public int maxRecursionSubmodule
public static java.lang.String debugNamePredefBlock
public static java.lang.String debugSlxBlockType
public static java.lang.String debugSlxName
public static java.lang.String debugSlxLineName
public static java.lang.String debugSlxName2
public static java.lang.String debugModuleNamePrepareFromSlx
public static java.lang.String debugNameTypePropSubmodule
public static java.lang.String debugLibBlock
public static java.lang.String debugCallBlockForTranslation
public static java.lang.String debugClassForTranslation
public static java.lang.String debugModuleForTranslation
public static java.lang.String debugLibBlockLibName
public static java.lang.String debugBlockNameTypePropagation
public static java.lang.String debugBlockGlobalNameTypePropagation
public static java.lang.String debugModuleNameTypePropagation
public static java.lang.String debugConNameGenExpr
public static java.lang.String debugBlockname_toProcess
public static java.lang.String debugSubmodulename_toSearchAndTranslate
public static java.lang.String debugBlockNameInLib_ReplaceConnections
public static java.lang.String debugBlocknameSortBlocks
public static java.lang.String debugSignalnameOutportCompleteFBlock_Operation
public static java.lang.String debugGenJavaOperationname
public static java.lang.String debugCreateBlockOfOperations
public static java.lang.String debugNameOutVariable
public static java.lang.String debugNameOutblockPart
public static java.lang.String debugNameClassVar
public static java.lang.String debugBlock
public static java.lang.String dbgNameStepOperation
public static java.lang.String dbgNameClass
public static java.lang.String dbgNameOperation
boolean bLogOperationOfCluster
java.lang.String sIdent
int nIdent
private FBtype_FBcl.Ctor fBlockType_ctor
FBtype_FBcl
.
Only inside this Prj_FBCLrd
FBlockType instances should be cretated and also registered.
The only operation is #getCreateFBlockType(String)
.public Prj_FBCLrd(org.vishia.msgDispatch.LogMessage cmdlog, OFBconv.CmdArgs args) throws java.text.ParseException, java.lang.InstantiationException, java.io.IOException
args
- command line calling arguments, are filled already.fileLog
- java.text.ParseException
java.lang.InstantiationException
java.io.IOException
public void readSpecificLibFiles()
public void writeTranslationInfo(java.lang.String error)
public DType_FBcl XXXgetCreateUserDataType(java.lang.String sType)
public DType_FBcl getCreateUserDataType(FBtype_FBcl fbref)
FBtype_FBcl
fbref
- given FBtype_FBcl
public DType_FBcl getCreateDataType(java.lang.String sType, int[] sizeArray, int depId)
DType_FBcl.getStdType(String)
.
If not successfull, firstsType
- sizeArray
- public DType_FBcl getCreateDataType(java.lang.String sType, int[] sizeArray)
sType
- sizeArray
- public FBtype_FBcl getCreateFBlockType(FBlock_FBcl.Blocktype kind, java.lang.String name, Module_FBcl mdl)
name
- kind
- FBlock_FBcl.Blocktype.Libmodulemdl
- void dataTypeError(DinoutType_FBcl con1, DinoutType_FBcl con2)
public void throwModelError(FBlock_FBcl block, DinoutType_FBcl con, java.lang.String nameConn, java.lang.String msg)
public FBtype_FBcl getTypeFB(java.lang.String name)
public void writeError(java.lang.String error, java.lang.Exception exc)
error
- exc
- if not null build a ExcUtil.exceptionInfo(CharSequence, Throwable, int, int)
.public void errorMsg(java.lang.String msg, java.lang.Object... params)
public void errorMsgAdd(java.lang.String msg, java.lang.Object... params)
public void infoMsg(java.lang.String msg, java.lang.Object... params)
public void close() throws java.io.IOException
java.io.IOException