se.sics.tasim.is.common
Class ViewerCache
java.lang.Object
se.sics.tasim.is.EventWriter
se.sics.tasim.is.common.ViewerCache
public class ViewerCache
- extends EventWriter
Method Summary |
void |
dataUpdated(int agent,
int type,
double value)
|
void |
dataUpdated(int agent,
int type,
float value)
|
void |
dataUpdated(int agent,
int type,
int value)
|
void |
dataUpdated(int agent,
int type,
long value)
|
void |
dataUpdated(int agent,
int type,
java.lang.String value)
|
void |
dataUpdated(int agent,
int type,
Transportable content)
|
void |
dataUpdated(int type,
Transportable content)
|
void |
intCache(int agent,
int type,
int[] cache)
|
void |
interaction(int fromAgent,
int toAgent,
int type)
|
void |
interactionWithRole(int fromAgent,
int role,
int type)
|
void |
nextTimeUnit(int timeUnit)
Notifies about entering a new time unit for the running simulation. |
void |
participant(int agent,
int role,
java.lang.String name,
int participantID)
Specifies a participant in the current simulation. |
void |
writeCache(EventWriter eventWriter)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ViewerCache
public ViewerCache()
writeCache
public void writeCache(EventWriter eventWriter)
participant
public void participant(int agent,
int role,
java.lang.String name,
int participantID)
- Description copied from class:
EventWriter
- Specifies a participant in the current simulation. The agent field is a
local id for this participant in the simulation.
The participantID field is the global user id for the participant. A
negative participantID indicates that this participant is builtin
(dummy).
- Specified by:
participant
in class EventWriter
- Parameters:
agent
- a simulation local id for this participantrole
- the role of the participantname
- the name of the participantparticipantID
- the global id of the participating agent or negative if this
participant is builtin (dummy)
nextTimeUnit
public void nextTimeUnit(int timeUnit)
- Description copied from class:
EventWriter
- Notifies about entering a new time unit for the running simulation. Time
units can for example be simulated days, and similar. Only used in some
simulations.
- Specified by:
nextTimeUnit
in class EventWriter
- Parameters:
timeUnit
- the current time unit
dataUpdated
public void dataUpdated(int agent,
int type,
int value)
- Specified by:
dataUpdated
in class EventWriter
dataUpdated
public void dataUpdated(int agent,
int type,
long value)
- Specified by:
dataUpdated
in class EventWriter
dataUpdated
public void dataUpdated(int agent,
int type,
float value)
- Specified by:
dataUpdated
in class EventWriter
dataUpdated
public void dataUpdated(int agent,
int type,
double value)
- Specified by:
dataUpdated
in class EventWriter
dataUpdated
public void dataUpdated(int agent,
int type,
java.lang.String value)
- Specified by:
dataUpdated
in class EventWriter
dataUpdated
public void dataUpdated(int agent,
int type,
Transportable content)
- Specified by:
dataUpdated
in class EventWriter
dataUpdated
public void dataUpdated(int type,
Transportable content)
- Specified by:
dataUpdated
in class EventWriter
interaction
public void interaction(int fromAgent,
int toAgent,
int type)
- Specified by:
interaction
in class EventWriter
interactionWithRole
public void interactionWithRole(int fromAgent,
int role,
int type)
- Specified by:
interactionWithRole
in class EventWriter
intCache
public void intCache(int agent,
int type,
int[] cache)
- Specified by:
intCache
in class EventWriter
Copyright © 2007-2009 Association for Trading Agent Research. All Rights Reserved.