Skip to content

Commit

Permalink
Refactor MATSim plugin code
Browse files Browse the repository at this point in the history
  • Loading branch information
vladamatena committed Apr 13, 2015
1 parent 6f1d1ef commit 0a620d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public ActuatorProvider getActuatorProvider(final Id ownerId) {
private final Map<ActuatorType, Actuator<?>> actuators = new HashMap<ActuatorType, Actuator<?>>();

public <T> Actuator<T> createActuator(ActuatorType type) {
@SuppressWarnings("unchecked")
Actuator<T> actuator = (Actuator<T>) getActuatorInternal(ownerId, type, this);
actuators.put(type, actuator);
return actuator;
Expand All @@ -76,6 +77,7 @@ public SensorProvider getSensorProvider(final Id ownerId) {
private final Map<SensorType, Sensor<?>> sensors = new HashMap<SensorType, Sensor<?>>();

public <T> Sensor<T> createSensor(SensorType type) {
@SuppressWarnings("unchecked")
Sensor<T> sensor = (Sensor<T>) getSensorInternal(ownerId, type);
sensors.put(type, sensor);
return sensor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package cz.cuni.mff.d3s.jdeeco.matsim.simulation;

import java.util.List;

import org.matsim.api.core.v01.Id;
import org.matsim.core.mobsim.framework.MobsimAgent.State;

Expand All @@ -14,11 +12,9 @@
public class MATSimOutput {
public Id currentLinkId;
public State state;

public MATSimOutput(Id currentLinkId, State state) {
this.currentLinkId = currentLinkId;
this.state = state;
}


}

0 comments on commit 0a620d1

Please sign in to comment.