se.sics.tasim.sim
Class LogWriter
java.lang.Object
se.sics.tasim.is.EventWriter
se.sics.tasim.sim.LogWriter
public class LogWriter
- extends EventWriter
Method Summary |
LogWriter |
attr(java.lang.String name,
double value)
|
LogWriter |
attr(java.lang.String name,
float value)
|
LogWriter |
attr(java.lang.String name,
int value)
|
LogWriter |
attr(java.lang.String name,
long value)
|
LogWriter |
attr(java.lang.String name,
java.lang.String value)
|
void |
close()
|
void |
commit()
|
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 value)
|
void |
dataUpdated(int type,
Transportable value)
|
LogWriter |
endNode(java.lang.String name)
|
void |
intCache(int agent,
int type,
int[] cache)
|
void |
interaction(int fromAgent,
int toAgent,
int type)
|
void |
interactionWithRole(int fromAgent,
int role,
int type)
|
boolean |
isClosed()
|
void |
message(int sender,
int receiver,
Transportable content,
long time)
|
void |
messageToRole(int sender,
int role,
Transportable content,
long time)
|
void |
nextTimeUnit(int timeUnit)
Notifies about entering a new time unit for the running simulation. |
void |
nextTimeUnit(int timeUnit,
long time)
|
LogWriter |
node(java.lang.String name)
|
void |
participant(int id,
int role,
java.lang.String name,
int participantID)
Specifies a participant in the current simulation. |
LogWriter |
write(Transportable content)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LogWriter
public LogWriter(EventWriter parentWriter)
LogWriter
public LogWriter(EventWriter parentWriter,
java.io.OutputStream out)
isClosed
public boolean isClosed()
close
public void close()
commit
public void commit()
nextTimeUnit
public void nextTimeUnit(int timeUnit,
long time)
participant
public void participant(int id,
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:
id
- 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 value)
- Specified by:
dataUpdated
in class EventWriter
dataUpdated
public void dataUpdated(int type,
Transportable value)
- 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
message
public void message(int sender,
int receiver,
Transportable content,
long time)
messageToRole
public void messageToRole(int sender,
int role,
Transportable content,
long time)
intCache
public void intCache(int agent,
int type,
int[] cache)
- Specified by:
intCache
in class EventWriter
write
public LogWriter write(Transportable content)
node
public LogWriter node(java.lang.String name)
endNode
public LogWriter endNode(java.lang.String name)
attr
public LogWriter attr(java.lang.String name,
int value)
attr
public LogWriter attr(java.lang.String name,
long value)
attr
public LogWriter attr(java.lang.String name,
float value)
attr
public LogWriter attr(java.lang.String name,
double value)
attr
public LogWriter attr(java.lang.String name,
java.lang.String value)
Copyright © 2007-2009 Association for Trading Agent Research. All Rights Reserved.