We have a simulation with the traffic library, and recently while reviewing the Java code, I found the following message: “The constructor Road(Agent, ShapeDrawMode, boolean, int, int, double, Paint, MarkupSegment…) is deprecated” in all the lines related to my 2D map modeling. I’m not sure if there is an alternative to this or if I made a mistake, because this is connected to some problems I was having with, for some reason, more cars passing through the map than through the logical model. In any case, I’m leaving one of the lines of code that show this message; perhaps the error can be seen there.
Casas1 = new Road( this, SHAPE_DRAW_2D3D, true, 1, 0, 0.0, green,
convertMarkupSegmentDescriptors_xjal(this.<MarkupSegmentDescriptor[]>getElementProperty("Casas1", IElementDescriptor.MARKUP_SEGMENTS)) );
We haven’t tried anything yet; this is the first time I’ve seen this part, and I don’t quite understand the official AnyLogic page.
5