@@ -0,0 +1,1682 @@
+/*%0A * JaamSim Discrete Event Simulation%0A * Copyright (C) 2020 JaamSim Software Inc.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage com.jaamsim.Graphics;%0A%0Aimport java.util.ArrayList;%0A%0Apublic class DirectedEntity %7B%0A%0A%09public final DisplayEntity entity;%0A%09public final boolean direction;%0A%0A%09public static final String REVERSE = %22(R)%22;%0A%0A%09public DirectedEntity(DisplayEntity ent) %7B%0A%09%09this(ent, true);%0A%09%7D%0A%0A%09public DirectedEntity(DisplayEntity ent, boolean dir) %7B%0A%09%09entity = ent;%0A%09%09direction = dir;%0A%09%7D%0A%0A%09public static ArrayList%3CDirectedEntity%3E getList(ArrayList%3CDisplayEntity%3E list, boolean dir) %7B%0A%09%09ArrayList%3CDirectedEntity%3E ret = new ArrayList%3C%3E(list.size());%0A%09%09for (DisplayEntity ent : list) %7B%0A%09%09%09ret.add(new DirectedEntity(ent, dir));%0A%09%09%7D%0A%09%09return ret;%0A%09%7D%0A%0A%09@Override%0A%09public String toString() %7B%0A%09%09String ret = entity.getName();%0A%09%09if (!direction)%0A%09%09%09ret = ret + REVERSE;%0A%09%09return ret;%0A%09%7D%0A%0A%09@Override%0A%09public boolean equals(Object obj) %7B%0A%09%09if (obj == null) return false;%0A%09%09if (obj == this) return true;%0A%09%09if (!(obj instanceof DirectedEntity)) return false;%0A%09%09DirectedEntity de = (DirectedEntity) obj;%0A%09%09return de.entity == entity && de.direction == direction;%0A%09%7D%0A%0A%7D%0A

add 'DirectedEntity' class