Package org.robwork.sdurw_kinematics
Class Stateless
- java.lang.Object
-
- org.robwork.sdurw_kinematics.Stateless
-
- Direct Known Subclasses:
ControllerModel
,Device
,Object
,SensorModel
,SimulatedController
,SimulatedSensor
public class Stateless extends java.lang.Object
interface for a stateless or typically a part stateless class.
-
-
Constructor Summary
Constructors Constructor Description Stateless(long cPtr, boolean cMemoryOwn)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete()
static long
getCPtr(Stateless obj)
StateStructurePtr
getStateStructure()
Get the state structure.boolean
isRegistered()
Check if object has registered its state.void
registerIn(State state)
initialize this stateless data to a specific statevoid
registerIn(StateStructurePtr state)
register this stateless object in a statestructure.void
unregister()
unregisters all state data of this stateless object
-
-
-
Method Detail
-
getCPtr
public static long getCPtr(Stateless obj)
-
delete
public void delete()
-
registerIn
public void registerIn(State state)
initialize this stateless data to a specific state- Parameters:
state
- [in] the state in which to register the data.
Note: the data will be registered in the state structure of the state
and any copies or other instances of the state will therefore also
contain the added states.
-
registerIn
public void registerIn(StateStructurePtr state)
register this stateless object in a statestructure.
-
unregister
public void unregister()
unregisters all state data of this stateless object
-
getStateStructure
public StateStructurePtr getStateStructure()
Get the state structure.- Returns:
- the state structure.
-
isRegistered
public boolean isRegistered()
Check if object has registered its state.- Returns:
- true if registered, false otherwise.
-
-