/** Constructor Function */ public AgentCopy( Gridlock_NorfolkTEST g, String home, String work, GeomPlanarGraphEdge startingEdge, GeomPlanarGraphEdge goalEdge) { world = g; // set up information about where the node is and where it's going homeNode = startingEdge.getDirEdge(0).getFromNode(); workNode = goalEdge.getDirEdge(0).getToNode(); homeTract = home; workTract = work; // set the location to be displayed GeometryFactory fact = new GeometryFactory(); location = new MasonGeometry(fact.createPoint(new Coordinate(10, 10))); Coordinate startCoord = null; startCoord = homeNode.getCoordinate(); updatePosition(startCoord); }