|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteis.EIDefaultImpl
massim.eismassim.EnvironmentInterface
public class EnvironmentInterface
This is an environment interface to the MASSim-server. It is intended to facilitate the comminication between agent-platforms that support the EIS-0.3 standard on one side and the MASSim-server on the other side.
The environment interface is configured via a configuration-file that is parsed and evaluated when instantiating the class. This includes creating entities, that is valid connections to the MASSim-server, using the credentials that are provided in that very configuration-file.
Constructor Summary | |
---|---|
EnvironmentInterface()
Instantiates the environment-interface. |
Method Summary | |
---|---|
void |
associateEntity(java.lang.String agent,
java.lang.String entity)
|
protected java.util.LinkedList<eis.iilang.Percept> |
getAllPerceptsFromEntity(java.lang.String entity)
|
java.lang.String |
getType(java.lang.String entity)
|
boolean |
isInitSupported()
|
protected boolean |
isSupportedByEntity(eis.iilang.Action action,
java.lang.String entity)
|
protected boolean |
isSupportedByEnvironment(eis.iilang.Action action)
|
protected boolean |
isSupportedByType(eis.iilang.Action action,
java.lang.String type)
|
protected eis.iilang.Percept |
performEntityAction(java.lang.String entity,
eis.iilang.Action action)
|
java.lang.String |
requiredVersion()
|
void |
run()
|
void |
sendNotifications(java.lang.String name,
java.util.Collection<eis.iilang.Percept> percepts)
|
Methods inherited from class eis.EIDefaultImpl |
---|
addEntity, addEntity, attachAgentListener, attachEnvironmentListener, deleteEntity, detachAgentListener, detachEnvironmentListener, freeAgent, freeEntity, freePair, getAgents, getAllPercepts, getAssociatedAgents, getAssociatedEntities, getEntities, getFreeEntities, getState, init, isKillSupported, isPauseSupported, isStartSupported, isStateTransitionValid, kill, notifyAgents, notifyAgentsViaEntity, notifyDeletedEntity, notifyFreeEntity, notifyNewEntity, pause, performAction, queryEntityProperty, queryProperty, registerAgent, setState, setType, start, unregisterAgent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EnvironmentInterface()
Method Detail |
---|
protected java.util.LinkedList<eis.iilang.Percept> getAllPerceptsFromEntity(java.lang.String entity) throws eis.exceptions.PerceiveException, eis.exceptions.NoEnvironmentException
getAllPerceptsFromEntity
in class eis.EIDefaultImpl
eis.exceptions.PerceiveException
eis.exceptions.NoEnvironmentException
protected boolean isSupportedByEntity(eis.iilang.Action action, java.lang.String entity)
isSupportedByEntity
in class eis.EIDefaultImpl
protected boolean isSupportedByEnvironment(eis.iilang.Action action)
isSupportedByEnvironment
in class eis.EIDefaultImpl
protected boolean isSupportedByType(eis.iilang.Action action, java.lang.String type)
isSupportedByType
in class eis.EIDefaultImpl
protected eis.iilang.Percept performEntityAction(java.lang.String entity, eis.iilang.Action action) throws eis.exceptions.ActException
performEntityAction
in class eis.EIDefaultImpl
eis.exceptions.ActException
public java.lang.String requiredVersion()
requiredVersion
in interface eis.EnvironmentInterfaceStandard
public java.lang.String getType(java.lang.String entity)
getType
in interface eis.EnvironmentInterfaceStandard
getType
in class eis.EIDefaultImpl
public boolean isInitSupported()
isInitSupported
in interface eis.EnvironmentInterfaceStandard
isInitSupported
in class eis.EIDefaultImpl
public void run()
run
in interface java.lang.Runnable
public void sendNotifications(java.lang.String name, java.util.Collection<eis.iilang.Percept> percepts)
public void associateEntity(java.lang.String agent, java.lang.String entity) throws eis.exceptions.RelationException
associateEntity
in interface eis.EnvironmentInterfaceStandard
associateEntity
in class eis.EIDefaultImpl
eis.exceptions.RelationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |