org.jactr.io.participant.impl
Class BasicASTParticipant

java.lang.Object
  extended by org.jactr.io.participant.impl.BasicASTParticipant
All Implemented Interfaces:
IASTParticipant
Direct Known Subclasses:
AuralModuleParticipant, DeclarativeModuleParticipant, GoalModuleParticipant, ImaginalModuleParticipant, MotorModuleParticipant, ProceduralModuleParticipant, RandomModuleParticipant, RetrievalModuleParticipant, VisualModuleParticipant, VocalModuleParticipant

public class BasicASTParticipant
extends java.lang.Object
implements IASTParticipant

basic astparticipant that will load a modelDescriptor from getModelDescriptorURL() and take the contents and insert them into the modelDescriptor during the call to install(CommonTree model) or cull the same nodes during the call to shouldExclude() it will also take care of the parameters if provided

Author:
developer

Constructor Summary
BasicASTParticipant(java.lang.String location)
           
BasicASTParticipant(java.net.URL modelDescriptor)
           
BasicASTParticipant(java.net.URL modelDescriptor, java.lang.Class<? extends org.jactr.core.module.IModule> moduleClass, java.util.Map<java.lang.String,java.lang.String> parameterMap)
           
 
Method Summary
 IASTInjector getInjector()
          return the initializer that will do the injecting
 IASTTrimmer getTrimmer()
          return the trimmer that will cull out injected nodes
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicASTParticipant

public BasicASTParticipant(java.lang.String location)

BasicASTParticipant

public BasicASTParticipant(java.net.URL modelDescriptor)

BasicASTParticipant

public BasicASTParticipant(java.net.URL modelDescriptor,
                           java.lang.Class<? extends org.jactr.core.module.IModule> moduleClass,
                           java.util.Map<java.lang.String,java.lang.String> parameterMap)
Method Detail

getInjector

public IASTInjector getInjector()
Description copied from interface: IASTParticipant
return the initializer that will do the injecting

Specified by:
getInjector in interface IASTParticipant
Returns:

getTrimmer

public IASTTrimmer getTrimmer()
Description copied from interface: IASTParticipant
return the trimmer that will cull out injected nodes

Specified by:
getTrimmer in interface IASTParticipant
Returns: