MATSIM
MobsimAgent.java
Go to the documentation of this file.
1 /* *********************************************************************** *
2  * project: matsim
3  * PlanAgent.java
4  * *
5  * *********************************************************************** *
6  * *
7  * copyright : (C) 2010 by the members listed in the COPYING, *
8  * LICENSE and WARRANTY file. *
9  * email : info at matsim dot org *
10  * *
11  * *********************************************************************** *
12  * *
13  * This program is free software; you can redistribute it and/or modify *
14  * it under the terms of the GNU General Public License as published by *
15  * the Free Software Foundation; either version 2 of the License, or *
16  * (at your option) any later version. *
17  * See also COPYING, LICENSE and WARRANTY file *
18  * *
19  * *********************************************************************** */
20 
21 package org.matsim.core.mobsim.framework;
22 
23 import org.matsim.api.core.v01.Id;
29 
41 public interface MobsimAgent extends NetworkAgent, Identifiable<Person> {
42 
43  public enum State {
44  ACTIVITY, LEG, ABORT
45  }
46 
56  State getState();
57 
67  public double getActivityEndTime();
68 
74  public void endActivityAndComputeNextState(final double now);
75 
81  public void endLegAndComputeNextState(final double now);
82 
91  public void setStateToAbort(final double now);
92 
101 
105  public Double getExpectedTravelDistance();
106 
114  public void notifyArrivalOnLinkByNonNetworkMode(final Id<Link> linkId);
115 
116  public Facility getCurrentFacility() ;
117 
119 }
void endLegAndComputeNextState(final double now)
void endActivityAndComputeNextState(final double now)
void notifyArrivalOnLinkByNonNetworkMode(final Id< Link > linkId)