Package yarp
Class RateThread
- java.lang.Object
-
- yarp.RateThread
-
- Direct Known Subclasses:
RateThreadWrapper
public class RateThread extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
swigCMemOwn
-
Constructor Summary
Constructors Modifier Constructor Description protected
RateThread(long cPtr, boolean cMemoryOwn)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterStart(boolean success)
void
askToStop()
void
beforeStart()
void
delete()
protected void
finalize()
protected static long
getCPtr(RateThread obj)
double
getEstPeriod()
void
getEstPeriod(SWIGTYPE_p_double av, SWIGTYPE_p_double std)
double
getEstUsed()
void
getEstUsed(SWIGTYPE_p_double av, SWIGTYPE_p_double std)
long
getIterations()
int
getPriority()
double
getRate()
boolean
isRunning()
boolean
isSuspended()
void
resetStat()
void
resume()
void
run()
int
setPriority(int priority)
int
setPriority(int priority, int policy)
boolean
setRate(int p)
boolean
start()
boolean
step()
void
stop()
void
suspend()
boolean
threadInit()
void
threadRelease()
-
-
-
Method Detail
-
getCPtr
protected static long getCPtr(RateThread obj)
-
finalize
protected void finalize()
- Overrides:
finalize
in classjava.lang.Object
-
delete
public void delete()
-
threadInit
public boolean threadInit()
-
threadRelease
public void threadRelease()
-
run
public void run()
-
start
public boolean start()
-
step
public boolean step()
-
stop
public void stop()
-
askToStop
public void askToStop()
-
isRunning
public boolean isRunning()
-
isSuspended
public boolean isSuspended()
-
setRate
public boolean setRate(int p)
-
getRate
public double getRate()
-
suspend
public void suspend()
-
resume
public void resume()
-
resetStat
public void resetStat()
-
getEstPeriod
public double getEstPeriod()
-
getEstPeriod
public void getEstPeriod(SWIGTYPE_p_double av, SWIGTYPE_p_double std)
-
getIterations
public long getIterations()
-
getEstUsed
public double getEstUsed()
-
getEstUsed
public void getEstUsed(SWIGTYPE_p_double av, SWIGTYPE_p_double std)
-
beforeStart
public void beforeStart()
-
afterStart
public void afterStart(boolean success)
-
setPriority
public int setPriority(int priority, int policy)
-
setPriority
public int setPriority(int priority)
-
getPriority
public int getPriority()
-
-