|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--nslj.src.system.NslSystem
Field Summary | |
char |
_accessibilityChar
|
boolean |
_runDeltaChanged
|
boolean |
_trainDeltaChanged
|
static boolean |
applet
|
boolean |
breakState
|
int |
debug
|
NslDisplaySystemVector |
display_system_list
|
NslDoubleSync |
displayMonitor
|
NslDoubleSync |
displayMonitorAck
|
boolean |
doubleBuffering
|
boolean |
endEpochChanged
|
static char |
init_run_char
|
NslSync |
interpMonitor
|
static java.lang.String |
module_executing
|
boolean |
noDisplay
|
NslDiff |
nsldiff
|
protected java.lang.String |
protocolName
|
NslScheduler |
scheduler
|
java.lang.String |
schedulerMethod
|
boolean |
smallScreen
|
boolean |
stepCmdRun
|
NslSync |
stepMonitor
|
Constructor Summary | |
NslSystem()
Set up all system lists for module and command registration. |
Method Summary | |
void |
addApproximationMethod(NslDiff m)
Add a numerical method to the database |
void |
addCommand(NslCmd command)
Add user command into the system |
void |
addDisplaySystem(NslDisplaySystem ds)
|
void |
addModel(NslModule module,
boolean noDisplay)
Add a well-defined module into the system. |
void |
addNslsCommand(java.lang.String name,
java.lang.String object)
|
void |
addProtocol(java.lang.String name,
NslModule module)
|
void |
addProtocolToAll(java.lang.String name)
|
void |
breakStep()
|
void |
continueCmd()
|
void |
continueStep()
|
void |
endModule()
|
void |
endRun()
|
void |
endRunEpoch()
|
void |
endSys()
|
double |
endTime()
|
void |
endTrain()
|
void |
endTrainEpoch()
|
boolean |
frameExist(java.lang.String name)
|
NslCmd |
getCommand(java.lang.String name)
get the user command with name name |
int |
getCurrentCycle()
Get the current cycle in simulation environment |
int |
getCurrentEpoch()
|
double |
getCurrentTime()
Get the current time in simulation environment |
double |
getCurTime()
Get the current time in simulation environment |
double |
getCycleAvgTime()
|
double |
getCycleTimer()
|
int |
getDebug()
getDebug |
double |
getEndTime()
Get the end time in simulation environment |
double |
getEpochAvgTime()
|
int |
getEpochs()
|
double |
getEpochTimer()
|
int |
getFinishedCycles()
Get the current cycle in simulation environment |
int |
getFinishedEpochs()
|
NslFrame |
getFrame(java.lang.String name)
|
NslInterpreter |
getInterpreter()
Get the current user command interpreter |
boolean |
getNoDisplay()
getNoDisplay |
java.lang.String |
getNslsObject(java.lang.String name)
|
int |
getNumberOfDisplays()
|
int |
getNumRunEpochs()
|
int |
getNumTrainEpochs()
|
NslHierarchy |
getRefToModuleOrClass(java.lang.String name,
char desiredAccess)
Get the ClassInstance or NslModule with label name |
double |
getRunEndTime()
Get the end time in simulation environment |
int |
getRunEpoch()
|
NslScheduler |
getScheduler()
Get the current run-time scheduler |
java.lang.String |
getSchedulerMethod()
getSchedulerMethod |
boolean |
getSmallScreen()
getSmallScreen |
double |
getTrainEndTime()
|
int |
getTrainEpoch()
|
void |
incCycle()
Increment by a one the cycle |
void |
incRunEpoch()
|
void |
incTime()
Increment by a run_time_step. |
void |
incTrainEpoch()
|
void |
init_displays()
|
void |
initModule()
|
void |
initRun()
Initialize the system. |
void |
initRunEpoch()
|
void |
initSys()
|
void |
initTrain()
Initialize the system. |
void |
initTrainEpoch()
|
boolean |
isSchedulerInRunMode()
|
boolean |
isSchedulerInTrainMode()
|
boolean |
isStepCmdRunning()
|
boolean |
isStepHalted()
|
void |
notifyDisplays()
|
void |
notifySchedulerAck()
|
void |
notifyStep()
|
void |
nslAddCommand(java.lang.String name,
java.lang.String className)
|
void |
nslCreateProtocol(java.lang.String name,
java.lang.String label,
NslModule module)
|
char |
nslGetAccess()
|
double |
nslGetApproximationDelta()
get approximation delta - integration time step / numerical method time step tm |
NslDiff |
nslGetApproximationMethod()
Get current differential method in use |
double |
nslGetApproximationTimeConstant()
get approximation timeConstant - integration time step / numerical method time step tm |
boolean |
nslGetBuffering()
|
NslData |
nslGetDataVar(java.lang.String name)
|
NslData |
nslGetDataVar(java.lang.String name,
char desiredAccess)
|
double |
nslGetDelta()
get run step size, delta t |
NslModule |
nslGetModelRef()
Get the current module context |
NslModule |
nslGetModuleRef(java.lang.String name)
Get the module with label name |
NslModule |
nslGetModuleRef(java.lang.String name,
char desiredAccess)
Get the module with label name |
java.lang.String |
nslGetProtocol()
|
double |
nslGetRunDelta()
get run step size, delta t |
double |
nslGetTrainDelta()
get train step size, delta t |
NslData |
nslGetValue(java.lang.String name)
|
void |
nslPrint(java.lang.String msg)
|
void |
nslPrintAllVariables()
|
void |
nslPrintln(java.lang.String msg)
|
void |
nslPrintStatistics()
|
void |
nslSetAccess(char v)
|
void |
nslSetAccessRecursive(char v)
|
void |
nslSetApproximationDelta(double t)
To set the time step size |
void |
nslSetApproximationMethod(NslDiff m)
Set current differetial (numerical method) to use |
void |
nslSetApproximationTimeConstant(double t)
To set the time step size |
void |
nslSetBuffering(boolean v)
|
void |
nslSetProtocol(java.lang.String name)
|
void |
nslSetRunDelta(double t)
set run step size, delta t |
void |
nslSetScheduler(NslScheduler sch)
Set the current run-time scheduler |
void |
nslSetSchedulerMethod(java.lang.String method)
nslSetSchedulerMethod |
void |
nslSetTrainDelta(double t)
set train step size, delta t |
boolean |
nslSetValue(NslData target,
java.lang.String name)
|
boolean |
nslSetValue(java.lang.String target,
NslData value)
|
boolean |
nslSetValueGeneric(NslData target,
NslData provider)
|
void |
printClassVariablesRecursively(NslClass cl)
|
void |
printModuleVariablesRecursively(NslModule module)
|
boolean |
protocolExist(java.lang.String name)
|
void |
reflect()
|
void |
remove(NslFrame df)
|
void |
resetCycleTimer()
|
void |
resetEpochTimer()
|
void |
resetPorts()
|
void |
setCurCycle(int cyc)
Set the current cycle in simulation environment |
void |
setCurrentCycle(int cyc)
|
void |
setCurrentTime(double t)
Set the current time in simulation environment |
void |
setCurTime(double t)
Set the current time in simulation environment |
void |
setDebug(int flag)
setDebug |
void |
setEndTime(double t)
Set the end time in simulation environment |
void |
SetEndTime(double val)
|
void |
setExecutive(NslExecutive e)
|
void |
setInterpreter(NslInterpreter interp)
Set the current user command interpreter |
void |
setNoDisplay(boolean flag)
setNoDisplay |
void |
setNumRunEpochs(int n)
|
void |
setNumTrainEpochs(int n)
|
void |
setRunEndTime(double t)
Set the end time in simulation environment |
void |
setRunEpoch(int epoch)
|
void |
setSmallScreen(boolean flag)
setSmallScreen |
void |
setTrainEndTime(double val)
|
void |
setTrainEpoch(int epoch)
|
void |
startCycleTimer()
|
void |
startEpochTimer()
|
void |
stepCmdFinished()
|
void |
stepCmdStarted()
|
void |
stopCycleTimer()
|
void |
stopEpochTimer()
|
java.lang.String |
toString()
|
void |
waitDisplayAck()
|
void |
waitScheduler()
|
void |
waitStep()
|
void |
waitTheScheduler()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public NslScheduler scheduler
public NslSync interpMonitor
public NslSync stepMonitor
public NslDoubleSync displayMonitor
public NslDoubleSync displayMonitorAck
public boolean breakState
public boolean stepCmdRun
public boolean _runDeltaChanged
public boolean _trainDeltaChanged
public char _accessibilityChar
public static boolean applet
public NslDisplaySystemVector display_system_list
public static java.lang.String module_executing
public static char init_run_char
public boolean endEpochChanged
public NslDiff nsldiff
public boolean doubleBuffering
public boolean smallScreen
public boolean noDisplay
public int debug
public java.lang.String schedulerMethod
protected java.lang.String protocolName
Constructor Detail |
public NslSystem()
Method Detail |
public java.lang.String toString()
toString
in class java.lang.Object
public void SetEndTime(double val)
public double endTime()
public void initSys()
public void endSys()
public void initModule()
public void initRunEpoch()
public void initTrainEpoch()
public void initRun()
public void endRun()
public void endRunEpoch()
public void initTrain()
public void endTrain()
public void endTrainEpoch()
public void endModule()
public boolean isSchedulerInRunMode()
public boolean isSchedulerInTrainMode()
public void addModel(NslModule module, boolean noDisplay)
module
- module to be addedpublic NslModule nslGetModuleRef(java.lang.String name)
name
- The name to searchpublic NslModule nslGetModuleRef(java.lang.String name, char desiredAccess)
name
- The name to searchpublic NslHierarchy getRefToModuleOrClass(java.lang.String name, char desiredAccess)
name
- -The name to searchdesiredAccess
- - what type of desiredAccess is desiredparent
- - where are we starting frompublic NslData nslGetDataVar(java.lang.String name)
public NslData nslGetDataVar(java.lang.String name, char desiredAccess)
public NslData nslGetValue(java.lang.String name)
public boolean nslSetValue(java.lang.String target, NslData value)
public boolean nslSetValue(NslData target, java.lang.String name)
public boolean nslSetValueGeneric(NslData target, NslData provider)
public void nslPrintAllVariables()
public void printModuleVariablesRecursively(NslModule module)
public void printClassVariablesRecursively(NslClass cl)
public NslModule nslGetModelRef()
public void addCommand(NslCmd command)
command
- public NslCmd getCommand(java.lang.String name)
name
- the command namepublic void setInterpreter(NslInterpreter interp)
interp
- public NslInterpreter getInterpreter()
public void waitScheduler()
public void continueCmd()
public void waitStep()
public void notifyStep()
public void waitTheScheduler()
public void notifyDisplays()
public void waitDisplayAck()
public void notifySchedulerAck()
public boolean isStepHalted()
public void breakStep()
public void continueStep()
public boolean isStepCmdRunning()
public void stepCmdStarted()
public void stepCmdFinished()
public void nslSetScheduler(NslScheduler sch)
interp
- public NslScheduler getScheduler()
public void addApproximationMethod(NslDiff m)
m
- the numerical methodpublic void nslSetApproximationMethod(NslDiff m)
m
- numerical method.public NslDiff nslGetApproximationMethod()
public double getEpochTimer()
public double getCycleTimer()
public double getEpochAvgTime()
public double getCycleAvgTime()
public void startCycleTimer()
public void startEpochTimer()
public void stopCycleTimer()
public void stopEpochTimer()
public void resetCycleTimer()
public void resetEpochTimer()
public double getCurTime()
public void setCurTime(double t)
t
- - current timepublic double getCurrentTime()
public void setCurrentTime(double t)
t
- - current timepublic int getCurrentCycle()
public int getFinishedCycles()
public void setCurCycle(int cyc)
t
- - current cycle intpublic void setCurrentCycle(int cyc)
public void incCycle()
public int getRunEpoch()
public int getTrainEpoch()
public void setRunEpoch(int epoch)
public void setTrainEpoch(int epoch)
public void incRunEpoch()
public void incTrainEpoch()
public void incTime()
public void setNumTrainEpochs(int n)
public void setNumRunEpochs(int n)
public int getNumTrainEpochs()
public int getNumRunEpochs()
public int getEpochs()
public double getEndTime()
public void setEndTime(double t)
t
- - end timepublic void setTrainEndTime(double val)
public double getTrainEndTime()
public double getRunEndTime()
public void setRunEndTime(double t)
t
- - end timepublic double nslGetDelta()
public int getCurrentEpoch()
public int getFinishedEpochs()
public double nslGetRunDelta()
public void nslSetRunDelta(double t)
t
- step sizepublic double nslGetTrainDelta()
public void nslSetTrainDelta(double t)
t
- step sizepublic double nslGetApproximationDelta()
public void nslSetApproximationDelta(double t)
t
- time step sizepublic double nslGetApproximationTimeConstant()
public void nslSetApproximationTimeConstant(double t)
t
- time step sizepublic void addDisplaySystem(NslDisplaySystem ds)
public void remove(NslFrame df)
public boolean getSmallScreen()
public void setSmallScreen(boolean flag)
boolean
- flagpublic boolean getNoDisplay()
public void setNoDisplay(boolean flag)
boolean
- flagpublic int getDebug()
public void setDebug(int flag)
int
- flagpublic java.lang.String getSchedulerMethod()
public void nslSetSchedulerMethod(java.lang.String method)
int
- flag
note:
"pre" parent before child
"post" parent after child
"mixed" init methods do p before c;
run methods do p after c.public void nslSetAccess(char v)
public char nslGetAccess()
public void nslSetAccessRecursive(char v)
public void nslSetBuffering(boolean v)
public boolean nslGetBuffering()
public void resetPorts()
public void addNslsCommand(java.lang.String name, java.lang.String object)
public java.lang.String getNslsObject(java.lang.String name)
public void nslAddCommand(java.lang.String name, java.lang.String className)
public void reflect()
public void setExecutive(NslExecutive e)
public void addProtocolToAll(java.lang.String name)
public void addProtocol(java.lang.String name, NslModule module)
public void nslCreateProtocol(java.lang.String name, java.lang.String label, NslModule module)
public boolean protocolExist(java.lang.String name)
public java.lang.String nslGetProtocol()
public void nslSetProtocol(java.lang.String name)
public void nslPrint(java.lang.String msg)
public void nslPrintln(java.lang.String msg)
public void nslPrintStatistics()
public void init_displays()
public int getNumberOfDisplays()
public boolean frameExist(java.lang.String name)
public NslFrame getFrame(java.lang.String name)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |