From 9ffc8bb273ad1f2b9f94b2ac610add6f36754a63 Mon Sep 17 00:00:00 2001 From: Philipp Kraus Date: Wed, 7 Feb 2018 11:51:50 +0100 Subject: [PATCH] add cell index --- .../trafficsimulation/elements/vehicle/CVehicle.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/bachelorthesis/trafficsimulation/elements/vehicle/CVehicle.java b/src/main/java/bachelorthesis/trafficsimulation/elements/vehicle/CVehicle.java index 475231d..18013ed 100644 --- a/src/main/java/bachelorthesis/trafficsimulation/elements/vehicle/CVehicle.java +++ b/src/main/java/bachelorthesis/trafficsimulation/elements/vehicle/CVehicle.java @@ -165,6 +165,7 @@ protected final Stream staticliteral( final IObject p_object ) { return Stream.of( CLiteral.from( "lane", CRawTerm.from( this.position().get( 0 ) + 1 ) ), + CLiteral.from( "cell", CRawTerm.from( this.position().get( 1 ) + 1 ) ), CLiteral.from( "speed", CRawTerm.from( m_speed.get() ) ), CLiteral.from( "distance", CRawTerm.from( m_scenario.unit().celltometer( CMath.distance( this.position(), p_object.position() ) ) ) ), CLiteral.from( "direction",