se.sics.tasim.is.common
Class ViewerCache

java.lang.Object
  extended by se.sics.tasim.is.EventWriter
      extended by se.sics.tasim.is.common.ViewerCache

public class ViewerCache
extends EventWriter


Constructor Summary
ViewerCache()
           
 
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
 

Constructor Detail

ViewerCache

public ViewerCache()
Method Detail

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 participant
role - the role of the participant
name - the name of the participant
participantID - 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.