AnyLogic
Expand
Font size

public class UsdObjectCache
extends Object

Constructor Summary

ConstructorDescription
UsdObjectCache() 

Method Summary

Modifier and TypeMethodDescription
voidclearLocationCache() 
org.joml.Matrix4dgetAgentLocationFromCache(Agent agent)
Returns cached coordinates for the specified agent, or null if there are no cached coordinates for the agent.
org.joml.Matrix4dgetShapeLocationFromCache(Shape shape)
Returns cached coordinates for the specified shape, or null if there are no cached coordinates for the shape.
org.joml.Matrix4dputAgentToLocationCache(Agent agent, org.joml.Matrix4d matrix) 
voidputShapeLocationToCache(Shape shape, org.joml.Matrix4d matrix) 

Methods inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Details

UsdObjectCache

public UsdObjectCache()

Method Details

clearLocationCache

public void clearLocationCache()

putShapeLocationToCache

public void putShapeLocationToCache(Shape shape,
 org.joml.Matrix4d matrix)

putAgentToLocationCache

public org.joml.Matrix4d putAgentToLocationCache(Agent agent,
 org.joml.Matrix4d matrix)

getAgentLocationFromCache

public org.joml.Matrix4d getAgentLocationFromCache(Agent agent)
Returns cached coordinates for the specified agent, or null if there are no cached coordinates for the agent. Always creates new matrix for cached value (if it is not null) for modification safety

getShapeLocationFromCache

public org.joml.Matrix4d getShapeLocationFromCache(Shape shape)
Returns cached coordinates for the specified shape, or null if there are no cached coordinates for the shape. Always creates new matrix for cached value (if it is not null) for modification safety