Package com.github.stephengold.joltjni
Class VehicleControllerSettings
java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.SerializableObject
com.github.stephengold.joltjni.VehicleControllerSettings
- All Implemented Interfaces:
ConstJoltPhysicsObject,ConstSerializableObject,ConstVehicleControllerSettings,RefTarget,AutoCloseable,Comparable<JoltPhysicsObject>
- Direct Known Subclasses:
TrackedVehicleControllerSettings,WheeledVehicleControllerSettings
public class VehicleControllerSettings
extends SerializableObject
implements ConstVehicleControllerSettings
Settings used to construct a
VehicleController.-
Method Summary
Modifier and TypeMethodDescriptionintCount the active references to the nativeVehicleControllerSettings.voidrestoreBinaryState(StreamIn stream) Load the settings from the specified binary stream.voidsaveBinaryState(StreamOut stream) Save the settings to the specified binary stream.voidMark the nativeVehicleControllerSettingsas embedded.protected final voidsetVirtualAddressAsCoOwner(long settingsVa) Assign a native object (assuming there's none already assigned) and designate the JVM object as a co-owner.toRef()Create a counted reference to the nativeVehicleControllerSettings.Methods inherited from class com.github.stephengold.joltjni.SerializableObject
getRttiMethods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, isCleanerStarted, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, targetVa, toString, vaMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, targetVaMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstSerializableObject
getRtti
-
Method Details
-
restoreBinaryState
Load the settings from the specified binary stream.- Parameters:
stream- the stream to read from (not null)
-
setVirtualAddressAsCoOwner
protected final void setVirtualAddressAsCoOwner(long settingsVa) Assign a native object (assuming there's none already assigned) and designate the JVM object as a co-owner.- Parameters:
settingsVa- the virtual address of the native object to assign (not zero)
-
saveBinaryState
Save the settings to the specified binary stream. The settings are unaffected.- Specified by:
saveBinaryStatein interfaceConstVehicleControllerSettings- Parameters:
stream- the stream to write to (not null)
-
getRefCount
public int getRefCount()Count the active references to the nativeVehicleControllerSettings. The settings are unaffected.- Specified by:
getRefCountin interfaceRefTarget- Returns:
- the count (≥0)
-
setEmbedded
public void setEmbedded()Mark the nativeVehicleControllerSettingsas embedded.- Specified by:
setEmbeddedin interfaceRefTarget
-
toRef
Create a counted reference to the nativeVehicleControllerSettings.
-