AnyLogic
Expand
Font size
Type Parameters:
T - type of element of the model (an agent, a shape, and so on)
All Known Subinterfaces:
InstancingUsdRepresentation<T>
All Known Implementing Classes:
AbstractInstancingUsdRepresentation, AbstractUsdRepresentation, AgentUsdRepresentation, BatchMarkupUsdRepresentation, CameraUsdRepresentation, CollectionUsdRepresentation, ElevatorUsdRepresentation, JibCraneUsdRepresentation, LiftUsdRepresentation, MarkupCollectionUsdRepresentation, OverheadCraneUsdRepresentation, PopulationUsdRepresentation, PositionalMarkupCollectionUsdRepresentation, PositionalMarkupUsdRepresentation, Shape3DObjectCollectionUsdRepresentation, ShapeCollectionUsdRepresentation, ShapeUsdRepresentation, UsdElementCollectionUsdRepresentation

public interface UsdRepresentation<T>
Base interface for object represents the connection between the AnyLogic element and its USD prim

Method Summary

Modifier and TypeMethodDescription
voidaddAttrUpdater(String pathInsidePrim, String attrName, Function<T,Object> valueProvider)
Adds an attribute updater for a prim depending on the element state
voidaddAttrUpdater(String name, Function<T,Object> valueProvider)
Adds an attribute updater for a prim depending on the element state
voidaddVariantUpdater(String pathInsidePrim, String varsetName, Function<T,Object> variantProvider)
Adds a variant updater (a set of alternative configurations) for a prim
voidaddVariantUpdater(String name, Function<T,Object> valueProvider)
Adds a variant updater (a set of alternative configurations) for a prim
voidfillFrame(OmniFrame frame) 
ObjectgetObject() 

Method Details

fillFrame

@AnyLogicInternalAPI
void fillFrame(OmniFrame frame)

getObject

@AnyLogicInternalAPI
Object getObject()

addAttrUpdater

void addAttrUpdater(String name,
 Function<T,Object> valueProvider)
Adds an attribute updater for a prim depending on the element state
Parameters:
name - The name of the attribute of the USD object that needs to be changed.
valueProvider - The function that generates an attribute value being updated.

addAttrUpdater

void addAttrUpdater(String pathInsidePrim,
 String attrName,
 Function<T,Object> valueProvider)
Adds an attribute updater for a prim depending on the element state
Parameters:
pathInsidePrim - A relative part to an embedded prim that needs to be changed.
attrName - The name of the attribute of the USD object that needs to be changed.
valueProvider - The function that generates an attribute value being updated.

addVariantUpdater

void addVariantUpdater(String name,
 Function<T,Object> valueProvider)
Adds a variant updater (a set of alternative configurations) for a prim
Parameters:
name - The name of the variant set.
valueProvider - The function that generates the name of the USD prim variant depending on the state of the element.

addVariantUpdater

void addVariantUpdater(String pathInsidePrim,
 String varsetName,
 Function<T,Object> variantProvider)
Adds a variant updater (a set of alternative configurations) for a prim
Parameters:
pathInsidePrim - A relative part to an embedded prim that needs to be changed.
varsetName - The name of the variant set.
variantProvider - The function that generates the name of the USD prim variant depending on the state of the element.