jadex.application.runtime.impl
Class ExternalAccess

java.lang.Object
  extended by jadex.application.runtime.impl.ExternalAccess
All Implemented Interfaces:
IApplicationExternalAccess, IExternalAccess, IRemotable

public class ExternalAccess
extends Object
implements IApplicationExternalAccess

External access for applications.


Field Summary
protected  IComponentAdapter adapter
          The component adapter.
protected  ApplicationInterpreter application
          The application component.
protected  IServiceProvider provider
          The provider.
protected  String tostring
          The toString value.
 
Constructor Summary
ExternalAccess(ApplicationInterpreter application)
          Create an external access.
 
Method Summary
 IResultListener createResultListener(IResultListener listener)
          Create a result listener that will be executed on the component thread.
 IFuture getChildren()
          Get the children (if any).
 IFuture getChildren(String type)
          Get the children (if any).
 IComponentIdentifier getComponentIdentifier()
          Get the component identifier.
 IFuture getFileName(String ctype)
          Get the file name of a component type.
 IModelInfo getModel()
          Get the model.
 IComponentIdentifier getParent()
          Get the parent.
 IServiceProvider getServiceProvider()
          Get the application component.
 ISpace getSpace(String name)
          Get a space of the application.
 IFuture killComponent()
          Kill the component.
 IFuture scheduleStep(IComponentStep step)
          Schedule a step of the agent.
 String toString()
          Get the string representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

application

protected ApplicationInterpreter application
The application component.


adapter

protected IComponentAdapter adapter
The component adapter.


tostring

protected String tostring
The toString value.


provider

protected IServiceProvider provider
The provider.

Constructor Detail

ExternalAccess

public ExternalAccess(ApplicationInterpreter application)
Create an external access.

Method Detail

getModel

public IModelInfo getModel()
Get the model.

Specified by:
getModel in interface IExternalAccess
Returns:
The model.

getComponentIdentifier

public IComponentIdentifier getComponentIdentifier()
Get the component identifier.

Specified by:
getComponentIdentifier in interface IExternalAccess

getSpace

public ISpace getSpace(String name)
Get a space of the application.

Specified by:
getSpace in interface IApplicationExternalAccess
Parameters:
name - The name of the space.
Returns:
The space.

getParent

public IComponentIdentifier getParent()
Get the parent.

Specified by:
getParent in interface IExternalAccess

getChildren

public IFuture getChildren()
Get the children (if any).

Specified by:
getChildren in interface IExternalAccess
Returns:
The children.

getServiceProvider

public IServiceProvider getServiceProvider()
Get the application component.

Specified by:
getServiceProvider in interface IExternalAccess

killComponent

public IFuture killComponent()
Kill the component.

Specified by:
killComponent in interface IExternalAccess

createResultListener

public IResultListener createResultListener(IResultListener listener)
Create a result listener that will be executed on the component thread.

Parameters:
listener - The result listener.
Returns:
A result listener that is called on component thread.

getChildren

public IFuture getChildren(String type)
Get the children (if any).

Specified by:
getChildren in interface IApplicationExternalAccess
Returns:
The children.

getFileName

public IFuture getFileName(String ctype)
Get the file name of a component type.

Specified by:
getFileName in interface IApplicationExternalAccess
Parameters:
ctype - The component type.
Returns:
The file name of this component type.

scheduleStep

public IFuture scheduleStep(IComponentStep step)
Schedule a step of the agent. May safely be called from external threads.

Specified by:
scheduleStep in interface IExternalAccess
Parameters:
step - Code to be executed as a step of the agent.
Returns:
The result of the step.

toString

public String toString()
Get the string representation.

Overrides:
toString in class Object


Copyright © 2010. All Rights Reserved.