All Packages Class Hierarchy This Package Previous Next Index
macondo.mak.Agent | +----macondo.mak.Traveller
Traveller is a mobile agent following an itinerary
- See Also:
- Itinerary, Agent
-
Traveller()
- Creates a new
Traveller
.
-
Traveller(Itinerary)
- Creates a new
Traveller
with a given itinerary.
-
Traveller(String)
- Creates a new
Traveller
with a given name.
-
Traveller(String, Itinerary)
- Creates a new
Traveller
with given name
and itinerary.
-
doTrip()
- Let the traveller move, following its itinerary.
-
error(Exception)
- Method called when a problem is encountered during a trip.
-
setItinerary(Itinerary)
- Sets itinerary.
Traveller
protected Traveller()
- Creates a new
Traveller
.
Traveller
protected Traveller(String name)
- Creates a new
Traveller
with a given name.
- Parameters:
- name - the
Traveller
name.
Traveller
protected Traveller(Itinerary itinerary)
- Creates a new
Traveller
with a given itinerary.
- Parameters:
- itinerary - the
Traveller
itinerary.
- See Also:
- Itinerary
Traveller
protected Traveller(String name,
Itinerary itinerary)
- Creates a new
Traveller
with given name
and itinerary.
- Parameters:
- name - the
Traveller
name.
- itinerary - the
Traveller
itinerary.
- See Also:
- Itinerary
setItinerary
public final void setItinerary(Itinerary itinerary)
- Sets itinerary.
- Parameters:
- itinerary - the itinerary.
doTrip
public final void doTrip()
- Let the traveller move, following its itinerary.
- See Also:
- Pair
error
public void error(Exception e)
- Method called when a problem is encountered during a trip.
This default implementation does nothing.
All Packages Class Hierarchy This Package Previous Next Index