Package jadex.bdi.testcases.service
Class BeliefGetter
- java.lang.Object
-
- jadex.bridge.service.BasicService
-
- jadex.bdi.testcases.service.BeliefGetter
-
- All Implemented Interfaces:
IBeliefGetter
,IInternalService
,IService
public class BeliefGetter extends BasicService implements IBeliefGetter
Simple service that fetches a belief value.
-
-
Field Summary
Fields Modifier and Type Field Description protected IExternalAccess
agent
The agent's external access.-
Fields inherited from class jadex.bridge.service.BasicService
idcnt, impltype, internalaccess, providerid, shutdowned, sid, started, type
-
Fields inherited from interface jadex.bridge.service.IService
EMPTY_SERVICES
-
-
Constructor Summary
Constructors Constructor Description BeliefGetter(IExternalAccess agent)
Create a service.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IFuture
getFact(java.lang.String belname)
Get the fact of a belief.-
Methods inherited from class jadex.bridge.service.BasicService
createServiceIdentifier, createServiceIdentifier, equals, generateServiceName, getInterfaceType, getInternalAccess, getInvokeMethod, getMethodInfos, getMethodTimeout, getPropertyMap, getProviderId, getServiceId, hashCode, initNFProperties, invokeMethod, isValid, setComponentAccess, setPropertyMap, setServiceIdentifier, shutdownService, startService, toString
-
-
-
-
Field Detail
-
agent
protected IExternalAccess agent
The agent's external access.
-
-
Constructor Detail
-
BeliefGetter
public BeliefGetter(IExternalAccess agent)
Create a service.
-
-
Method Detail
-
getFact
public IFuture getFact(java.lang.String belname)
Get the fact of a belief.- Specified by:
getFact
in interfaceIBeliefGetter
- Parameters:
belname
- The belief name.- Returns:
- The fact.
-
-