|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjava.lang.Thread
jp.go.aist.rtm.RTC.PeriodicTaskBase
jp.go.aist.rtm.RTC.PeriodicTask
public class PeriodicTask
PeriodicTask
入れ子のクラスの概要 | |
---|---|
protected class |
PeriodicTask.alive_t
|
protected class |
PeriodicTask.statistics_t
|
protected class |
PeriodicTask.suspend_t
|
クラス java.lang.Thread から継承された入れ子のクラス/インタフェース |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
フィールドの概要 | |
---|---|
protected PeriodicTask.alive_t |
m_alive
|
protected boolean |
m_deleteInDtor
|
protected int |
m_execCount
|
protected int |
m_execCountMax
|
protected boolean |
m_execMeasure
|
protected PeriodicTask.statistics_t |
m_execStat
|
protected TimeMeasure |
m_execTime
|
protected TaskFuncBase |
m_func
|
protected boolean |
m_nowait
|
protected TimeValue |
m_period
|
protected int |
m_periodCount
|
protected int |
m_periodCountMax
|
protected boolean |
m_periodMeasure
|
protected PeriodicTask.statistics_t |
m_periodStat
|
protected TimeMeasure |
m_periodTime
|
protected PeriodicTask.suspend_t |
m_suspend
|
クラス java.lang.Thread から継承されたフィールド |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
コンストラクタの概要 | |
---|---|
PeriodicTask()
ctor |
メソッドの概要 | |
---|---|
void |
_finalize()
Finalizing the task |
int |
_resume()
Resuming the suspended task |
int |
_suspend()
Suspending the task |
void |
activate()
Starting the task |
PeriodicTaskBase |
creator_()
creator_ |
void |
destructor_(java.lang.Object obj)
destructor_ |
void |
executionMeasure(boolean value)
This function can set the measurement of the execution time effective/invalidly. |
void |
executionMeasureCount(int n)
This function sets the cycle to measure the execution time. |
TimeMeasure.Statistics |
getExecStat()
This function acquires the measurement result of the execution time. |
TimeMeasure.Statistics |
getPeriodStat()
This function acquires the measurement result at time of the cycle. |
void |
periodicMeasure(boolean value)
This function can set the measurement of the execution time i effective/invalidly. |
void |
periodicMeasureCount(int n)
This function sets the cycle to measure the execution time. |
static void |
PeriodicTaskInit()
PeriodicTaskInit |
void |
run()
run |
void |
setPeriod(double period)
Setting task execution period |
void |
setPeriod(TimeValue period)
Setting task execution period |
boolean |
setTask(java.lang.Object obj)
Setting task execution function |
boolean |
setTask(java.lang.Object obj,
boolean delete_in_dtor)
|
boolean |
setTask(java.lang.Object obj,
java.lang.String func)
|
boolean |
setTask(java.lang.Object obj,
java.lang.String func,
boolean delete_in_dtor)
Setting task execution function |
void |
signal()
Executing the suspended task one tick |
protected void |
sleep()
sleep |
protected int |
svc()
svc |
protected void |
updateExecStat()
updateExecStat |
protected void |
updatePeriodStat()
updatePeriodStat |
クラス java.lang.Thread から継承されたメソッド |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
フィールドの詳細 |
---|
protected TimeValue m_period
protected boolean m_nowait
protected TaskFuncBase m_func
protected boolean m_deleteInDtor
protected PeriodicTask.alive_t m_alive
protected PeriodicTask.suspend_t m_suspend
protected boolean m_execMeasure
protected int m_execCount
protected int m_execCountMax
protected PeriodicTask.statistics_t m_execStat
protected TimeMeasure m_execTime
protected boolean m_periodMeasure
protected int m_periodCount
protected int m_periodCountMax
protected PeriodicTask.statistics_t m_periodStat
protected TimeMeasure m_periodTime
コンストラクタの詳細 |
---|
public PeriodicTask()
ctor
メソッドの詳細 |
---|
public void activate()
Starting the task
Starting a thread to execute a task. If the task/thread is started properly, it will return 'TRUE'. if the task/thread are already started or task function object is not set, 'FALSE' will be returned.
PeriodicTaskBase
内の activate
public void _finalize()
Finalizing the task
Finalizing the task running.
PeriodicTaskBase
内の _finalize
public int _suspend()
Suspending the task
Suspending the task running.
PeriodicTaskBase
内の _suspend
public int _resume()
Resuming the suspended task
Resuming the suspended task
PeriodicTaskBase
内の _resume
public void signal()
Executing the suspended task one tick
Executing the suspended task one tick
PeriodicTaskBase
内の signal
public boolean setTask(java.lang.Object obj, java.lang.String func, boolean delete_in_dtor)
Setting task execution function
PeriodicTaskBase
内の setTask
obj
- delete_in_dtor
-
public boolean setTask(java.lang.Object obj)
Setting task execution function
PeriodicTaskBase
内の setTask
obj
- Set int (*)() type function pointer
public boolean setTask(java.lang.Object obj, java.lang.String func)
PeriodicTaskBase
内の setTask
public boolean setTask(java.lang.Object obj, boolean delete_in_dtor)
PeriodicTaskBase
内の setTask
public void setPeriod(double period)
Setting task execution period
PeriodicTaskBase
内の setPeriod
period
- Execution period [sec]public void setPeriod(TimeValue period)
Setting task execution period
PeriodicTaskBase
内の setPeriod
period
- Execution periodpublic void executionMeasure(boolean value)
This function can set the measurement of the execution time effective/invalidly.
PeriodicTaskBase
内の executionMeasure
value
- true:effectuationpublic void executionMeasureCount(int n)
This function sets the cycle to measure the execution time.
PeriodicTaskBase
内の executionMeasureCount
n
- Cycle frequencypublic void periodicMeasure(boolean value)
This function can set the measurement of the execution time i effective/invalidly.
PeriodicTaskBase
内の periodicMeasure
value
- true:effectuationpublic void periodicMeasureCount(int n)
This function sets the cycle to measure the execution time.
PeriodicTaskBase
内の periodicMeasureCount
n
- Cycle frequencypublic TimeMeasure.Statistics getExecStat()
This function acquires the measurement result of the execution time.
PeriodicTaskBase
内の getExecStat
public TimeMeasure.Statistics getPeriodStat()
This function acquires the measurement result at time of the cycle.
PeriodicTaskBase
内の getPeriodStat
protected int svc()
svc
public void run()
run
java.lang.Runnable
内の run
java.lang.Thread
内の run
protected void sleep()
sleep
protected void updateExecStat()
updateExecStat
protected void updatePeriodStat()
updatePeriodStat
public PeriodicTaskBase creator_()
creator_
ObjectCreator<PeriodicTaskBase>
内の creator_
public void destructor_(java.lang.Object obj)
destructor_
ObjectDestructor
内の destructor_
obj
- The target instances for destructionpublic static void PeriodicTaskInit()
PeriodicTaskInit
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |