|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnl.tudelft.simulation.event.EventProducer
org.gscg.common.interactionlayer.messaging.ScenarioText
Copyright (c) 2003-2005 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information www.simulation.tudelft.nl . The source code and binary code of this software is proprietary information of Delft University of Technology.
| Field Summary | |
static nl.tudelft.simulation.event.EventType |
CACHE_LARGE_NEWS_MESSAGE_EVENT
the cache large news message event; this event is for a message panel |
static java.lang.String |
CONTEXT_NAME
the name of this object in the context |
static nl.tudelft.simulation.event.EventType |
GAME_LEADER_SENT_SMALL_NEWS_MESSAGE_EVENT
the sent small news message event |
static nl.tudelft.simulation.event.EventType |
LARGE_NEWS_MESSAGE_EVENT
the large news message event; this event is for a message panel |
static nl.tudelft.simulation.event.EventType |
SMALL_NEWS_MESSAGE_EVENT
the small news message event; this event is for a news bar |
| Fields inherited from class nl.tudelft.simulation.event.EventProducer |
listeners |
| Fields inherited from interface nl.tudelft.simulation.event.EventProducerInterface |
FIRST_POSITION, LAST_POSITION |
| Constructor Summary | |
ScenarioText(nl.tudelft.simulation.dsol.simulators.SimulatorInterface simulator)
constructs a new ScenarioText |
|
| Method Summary | |
void |
addInteractionLayer(GlobalInteractionLayerInterface layer)
Method addInteractionLayer adds an interaction layer to the list of requestForQuotes of the scenario texts |
void |
announce(nl.tudelft.simulation.event.EventType eventType,
boolean announce)
Method announce. |
void |
announce(nl.tudelft.simulation.event.EventType eventType,
boolean announce,
SingleUserInteractionLayerInterface singleUserInteractionLayer)
|
void |
fireNewsMessageEvent(java.lang.Integer i)
Method fireNewsMessageEvent. |
void |
fireNewsMessageEvent(java.lang.String title,
java.lang.String content,
java.lang.String summary,
java.lang.String region,
java.lang.String type)
Fires a large news message event with the given title and conten. |
static ScenarioText |
getScenarioText()
|
void |
notify(nl.tudelft.simulation.event.EventInterface event)
|
| Methods inherited from class nl.tudelft.simulation.event.EventProducer |
addListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, getEventTypes, removeAllListeners, removeAllListeners, removeListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String CONTEXT_NAME
public static final nl.tudelft.simulation.event.EventType SMALL_NEWS_MESSAGE_EVENT
public static final nl.tudelft.simulation.event.EventType GAME_LEADER_SENT_SMALL_NEWS_MESSAGE_EVENT
public static final nl.tudelft.simulation.event.EventType LARGE_NEWS_MESSAGE_EVENT
public static final nl.tudelft.simulation.event.EventType CACHE_LARGE_NEWS_MESSAGE_EVENT
| Constructor Detail |
public ScenarioText(nl.tudelft.simulation.dsol.simulators.SimulatorInterface simulator)
simulator - the simulator to use| Method Detail |
public void addInteractionLayer(GlobalInteractionLayerInterface layer)
layer - the interaction layerpublic void fireNewsMessageEvent(java.lang.Integer i)
i - i
public void fireNewsMessageEvent(java.lang.String title,
java.lang.String content,
java.lang.String summary,
java.lang.String region,
java.lang.String type)
title - the title of the large news messagecontent - the content for the large news messagesummary - the summary of the large news messageregion - the region for the message, e.g. asia or europetype - the type of message, e.g. money, fire or graph (business)
public void announce(nl.tudelft.simulation.event.EventType eventType,
boolean announce,
SingleUserInteractionLayerInterface singleUserInteractionLayer)
eventType - the event typeannounce - indicates whether it is announce (=true) or notsingleUserInteractionLayer - the single user interaction layer
public void announce(nl.tudelft.simulation.event.EventType eventType,
boolean announce)
AnnounceInterface
announce in interface AnnounceInterfaceeventType - the eventTypeannounce - indicates whether this is an announceAnnounceInterface.announce(nl.tudelft.simulation.event.EventType,
boolean)
public void notify(nl.tudelft.simulation.event.EventInterface event)
throws java.rmi.RemoteException
notify in interface nl.tudelft.simulation.event.EventListenerInterfacejava.rmi.RemoteExceptionEventListenerInterface.notify(nl.tudelft.simulation.event.EventInterface)public static ScenarioText getScenarioText()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||