Package org.nd4j.common.tools
Class SIS
- java.lang.Object
-
- org.nd4j.common.tools.SIS
-
public class SIS extends Object
-
-
Constructor Summary
Constructors Constructor Description SIS()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetcharsCount()getcharsCount
public long getcharsCount()
Returns chars count counted from SIS creating.StringgetfullFileName()getfullFileName
public String getfullFileName()
Returns full file namevoidinfo(String oinfo)info
public void info( String oinfo )
This method is input for informations.
Informations are showed in console and saved in file.voidinitValues(int mtLv, String superiorModuleCode, PrintStream out, PrintStream err)initValues
public void initValues( int mtLv, String superiorModuleCode,
PrintStream out, PrintStream err )
Initialize values for console - not file.voidinitValues(int mtLv, String superiorModuleCode, PrintStream out, PrintStream err, String fileDrcS, String base_FileCode, String spc_FileCode, boolean ShowBriefInfo, boolean ShowFullInfo)initValues
public void initValues( int mtLv, String superiorModuleCode,
PrintStream out, PrintStream err, String fileDrcS,
String base_FileCode, String spc_FileCode,
boolean ShowBriefInfo, boolean ShowFullInfo )
Initialize values for console and file.
fullFileName =
"Z" +
TimeS + "_" +
base_FileCode + "_" +
spc_FileCode +
".txt";
TimeS (time string) format: "yyyyMMdd'_'HHmmss.SSS"voidonStop(int mtLv)onStop
public void onStop( int mtLv )
This method should be called at the end of program.
Close file.
-
-
-
Method Detail
-
initValues
public void initValues(int mtLv, String superiorModuleCode, PrintStream out, PrintStream err)initValues
public void initValues( int mtLv, String superiorModuleCode,
PrintStream out, PrintStream err )
Initialize values for console - not file.- Parameters:
mtLv- - method levelsuperiorModuleCode- - superior module codeout- - console standard outputerr- - console error output (not used)
-
initValues
public void initValues(int mtLv, String superiorModuleCode, PrintStream out, PrintStream err, String fileDrcS, String base_FileCode, String spc_FileCode, boolean ShowBriefInfo, boolean ShowFullInfo)initValues
public void initValues( int mtLv, String superiorModuleCode,
PrintStream out, PrintStream err, String fileDrcS,
String base_FileCode, String spc_FileCode,
boolean ShowBriefInfo, boolean ShowFullInfo )
Initialize values for console and file.
fullFileName =
"Z" +
TimeS + "_" +
base_FileCode + "_" +
spc_FileCode +
".txt";
TimeS (time string) format: "yyyyMMdd'_'HHmmss.SSS"- Parameters:
mtLv- - method levelsuperiorModuleCode- - superior module codeout- - console standard outputerr- - console error output (not used)fileDrcS- - file directory as stringbase_FileCode- - base part of file codespc_FileCode- - specifying part of file codeShowBriefInfo- - show brief informationsShowFullInfo- - show full informations
-
getfullFileName
public String getfullFileName()
getfullFileName
public String getfullFileName()
Returns full file name- Returns:
- full file name
-
info
public void info(String oinfo)
info
public void info( String oinfo )
This method is input for informations.
Informations are showed in console and saved in file.- Parameters:
oinfo- - information
-
getcharsCount
public long getcharsCount()
getcharsCount
public long getcharsCount()
Returns chars count counted from SIS creating.- Returns:
- chars count
-
onStop
public void onStop(int mtLv)
onStop
public void onStop( int mtLv )
This method should be called at the end of program.
Close file.- Parameters:
mtLv- - method level
-
-