public class MARSAgent extends Object
Constructor and Description |
---|
MARSAgent(MARS mars)
Creates new agent and attaches it to specified MARS instance.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this agent by detaching it from it's
MARS instance. |
protected MARSListener |
getListener() |
Collection<MARSEvent> |
retrieveEvents()
Retrieves all
MARSEvent events accumulated by this agent.You can use returned the collection as you want. |
void |
setListener(MARSListener listener)
Sets new listener to receive notifications.
|
public MARSAgent(MARS mars)
public Collection<MARSEvent> retrieveEvents()
MARSEvent
events accumulated by this agent.public void setListener(MARSListener listener)
MARSEvent
events.public void close()
MARS
instance.protected MARSListener getListener()
Copyright © 2002–2025 Devexperts LLC. All rights reserved.