I would like to instantiate a simulation Elements in AnyLogic through a Java class and visualize them on the simulation workspace, such as generating an element from the Process Modeling Library, like "Queue". I couldn't find the relevant constructor in the AnyLogic development documentation. I would like to ask if this idea can be realized? If so, could you please tell me how to do it and provide a simple demo? If not, could you please explain the reasons you know? Thank you very much for your answer.
If you want to "agent-ify" a Queue, create an agent type, drag in a queue, add ports to the left and right and instantiate that.
Or (even simpler) drag a Queue on Main, right-click it and select "Create flow chart block":
There is no need to use Java classes for something like that.