jp.go.aist.rtm.RTC
クラス PeriodicTask

java.lang.Object
  上位を拡張 java.lang.Thread
      上位を拡張 jp.go.aist.rtm.RTC.PeriodicTaskBase
          上位を拡張 jp.go.aist.rtm.RTC.PeriodicTask
すべての実装されたインタフェース:
java.lang.Runnable, ObjectCreator<PeriodicTaskBase>, ObjectDestructor

public class PeriodicTask
extends PeriodicTaskBase
implements ObjectCreator<PeriodicTaskBase>, ObjectDestructor

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
 

フィールドの詳細

m_period

protected TimeValue m_period

m_nowait

protected boolean m_nowait

m_func

protected TaskFuncBase m_func

m_deleteInDtor

protected boolean m_deleteInDtor

m_alive

protected PeriodicTask.alive_t m_alive

m_suspend

protected PeriodicTask.suspend_t m_suspend

m_execMeasure

protected boolean m_execMeasure

m_execCount

protected int m_execCount

m_execCountMax

protected int m_execCountMax

m_execStat

protected PeriodicTask.statistics_t m_execStat

m_execTime

protected TimeMeasure m_execTime

m_periodMeasure

protected boolean m_periodMeasure

m_periodCount

protected int m_periodCount

m_periodCountMax

protected int m_periodCountMax

m_periodStat

protected PeriodicTask.statistics_t m_periodStat

m_periodTime

protected TimeMeasure m_periodTime
コンストラクタの詳細

PeriodicTask

public PeriodicTask()

ctor

メソッドの詳細

activate

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

_finalize

public void _finalize()

Finalizing the task

Finalizing the task running.

定義:
クラス PeriodicTaskBase 内の _finalize

_suspend

public int _suspend()

Suspending the task

Suspending the task running.

定義:
クラス PeriodicTaskBase 内の _suspend

_resume

public int _resume()

Resuming the suspended task

Resuming the suspended task

定義:
クラス PeriodicTaskBase 内の _resume

signal

public void signal()

Executing the suspended task one tick

Executing the suspended task one tick

定義:
クラス PeriodicTaskBase 内の signal

setTask

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 -
戻り値:
boolean

setTask

public boolean setTask(java.lang.Object obj)

Setting task execution function

定義:
クラス PeriodicTaskBase 内の setTask
パラメータ:
obj - Set int (*)() type function pointer
戻り値:
boolean

setTask

public boolean setTask(java.lang.Object obj,
                       java.lang.String func)
定義:
クラス PeriodicTaskBase 内の setTask

setTask

public boolean setTask(java.lang.Object obj,
                       boolean delete_in_dtor)
定義:
クラス PeriodicTaskBase 内の setTask

setPeriod

public void setPeriod(double period)

Setting task execution period

定義:
クラス PeriodicTaskBase 内の setPeriod
パラメータ:
period - Execution period [sec]

setPeriod

public void setPeriod(TimeValue period)

Setting task execution period

定義:
クラス PeriodicTaskBase 内の setPeriod
パラメータ:
period - Execution period

executionMeasure

public void executionMeasure(boolean value)

This function can set the measurement of the execution time effective/invalidly.

定義:
クラス PeriodicTaskBase 内の executionMeasure
パラメータ:
value - true:effectuation

executionMeasureCount

public void executionMeasureCount(int n)

This function sets the cycle to measure the execution time.

定義:
クラス PeriodicTaskBase 内の executionMeasureCount
パラメータ:
n - Cycle frequency

periodicMeasure

public void periodicMeasure(boolean value)

This function can set the measurement of the execution time i effective/invalidly.

定義:
クラス PeriodicTaskBase 内の periodicMeasure
パラメータ:
value - true:effectuation

periodicMeasureCount

public void periodicMeasureCount(int n)

This function sets the cycle to measure the execution time.

定義:
クラス PeriodicTaskBase 内の periodicMeasureCount
パラメータ:
n - Cycle frequency

getExecStat

public TimeMeasure.Statistics getExecStat()

This function acquires the measurement result of the execution time.

定義:
クラス PeriodicTaskBase 内の getExecStat
戻り値:
TimeMeasure.Statistics

getPeriodStat

public TimeMeasure.Statistics getPeriodStat()

This function acquires the measurement result at time of the cycle.

定義:
クラス PeriodicTaskBase 内の getPeriodStat
戻り値:
TimeMeasure.Statistics

svc

protected int svc()

svc

戻り値:
int

run

public void run()

run

定義:
インタフェース java.lang.Runnable 内の run
オーバーライド:
クラス java.lang.Thread 内の run

sleep

protected void sleep()

sleep


updateExecStat

protected void updateExecStat()

updateExecStat


updatePeriodStat

protected void updatePeriodStat()

updatePeriodStat


creator_

public PeriodicTaskBase creator_()

creator_

定義:
インタフェース ObjectCreator<PeriodicTaskBase> 内の creator_
戻り値:
Object Created instances

destructor_

public void destructor_(java.lang.Object obj)

destructor_

定義:
インタフェース ObjectDestructor 内の destructor_
パラメータ:
obj - The target instances for destruction

PeriodicTaskInit

public static void PeriodicTaskInit()

PeriodicTaskInit