public class EnvironmentInterface extends eis.EIDefaultImpl implements Runnable
Constructor and Description |
---|
EnvironmentInterface()
Instantiates the environment-interface.
|
Modifier and Type | Method and Description |
---|---|
void |
associateEntity(String agent,
String entity) |
protected LinkedList<eis.iilang.Percept> |
getAllPerceptsFromEntity(String entity) |
String |
getType(String entity) |
boolean |
isInitSupported() |
protected boolean |
isSupportedByEntity(eis.iilang.Action action,
String entity) |
protected boolean |
isSupportedByEnvironment(eis.iilang.Action action) |
protected boolean |
isSupportedByType(eis.iilang.Action action,
String type) |
protected eis.iilang.Percept |
performEntityAction(String entity,
eis.iilang.Action action) |
Statistic |
requestNewStatistics(int simCount) |
String |
requiredVersion() |
void |
run() |
void |
sendNotifications(String name,
Collection<eis.iilang.Percept> percepts) |
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, reset, setState, setType, start, unregisterAgent
public EnvironmentInterface()
protected LinkedList<eis.iilang.Percept> getAllPerceptsFromEntity(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, 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, String type)
isSupportedByType
in class eis.EIDefaultImpl
protected eis.iilang.Percept performEntityAction(String entity, eis.iilang.Action action) throws eis.exceptions.ActException
performEntityAction
in class eis.EIDefaultImpl
eis.exceptions.ActException
public String requiredVersion()
requiredVersion
in interface eis.EnvironmentInterfaceStandard
public String getType(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 sendNotifications(String name, Collection<eis.iilang.Percept> percepts)
public void associateEntity(String agent, String entity) throws eis.exceptions.RelationException
associateEntity
in interface eis.EnvironmentInterfaceStandard
associateEntity
in class eis.EIDefaultImpl
eis.exceptions.RelationException
public Statistic requestNewStatistics(int simCount)
Copyright © 2013. All Rights Reserved.