brahms.base.system
Class CreateExternalAgentActivity

java.lang.Object
  extended by gov.nasa.arc.brahms.vm.api.jac.AbstractExternalActivity
      extended by brahms.base.system.CreateExternalAgentActivity
All Implemented Interfaces:
IExternalActivity

public class CreateExternalAgentActivity
extends AbstractExternalActivity

The CreateExternalAgentActivity allows a modeler to dynamically create a new external agent. The modeler must provide the fully qualified Java class name with the implementation for the Java agent and optionally specify the base name to assign to the external agent. The Brahms virtual machine will add additional information to the name to guarantee name uniqueness.

This activity requires three parameters in the Brahms java activity declaration:

Version:
$Revision: 1.1 $ $Date: 2007/10/10 14:02:53 $ $Author: rvhoof $
Author:
Ron van Hoof

Constructor Summary
CreateExternalAgentActivity()
           
 
Method Summary
 void doActivity()
          Executes the java activity action.
 
Methods inherited from class gov.nasa.arc.brahms.vm.api.jac.AbstractExternalActivity
addBeliefRelationConcept, addFactRelationConcept, assertBelief, assertFact, conclude, conclude, conclude, conclude, conclude, conclude, conclude, conclude, conclude, conclude, conclude, conclude, conclude, conclude, conclude, conclude, conclude, conclude, conclude, conclude, conclude, conclude, conclude, conclude, conclude, conclude, conclude, conclude, conclude, conclude, conclude, conclude, conclude, conclude, conclude, conclude, conclude, conclude, conclude, conclude, conclude, conclude, conclude, conclude, convertCurrent, getBeliefAttributeBoolean, getBeliefAttributeBoolean, getBeliefAttributeBoolean, getBeliefAttributeByte, getBeliefAttributeByte, getBeliefAttributeByte, getBeliefAttributeChar, getBeliefAttributeChar, getBeliefAttributeChar, getBeliefAttributeConcept, getBeliefAttributeConcept, getBeliefAttributeConcept, getBeliefAttributeDouble, getBeliefAttributeDouble, getBeliefAttributeDouble, getBeliefAttributeFloat, getBeliefAttributeFloat, getBeliefAttributeFloat, getBeliefAttributeInt, getBeliefAttributeInt, getBeliefAttributeInt, getBeliefAttributeJava, getBeliefAttributeJava, getBeliefAttributeJava, getBeliefAttributeLong, getBeliefAttributeLong, getBeliefAttributeLong, getBeliefAttributeMap, getBeliefAttributeShort, getBeliefAttributeShort, getBeliefAttributeShort, getBeliefAttributeSortedMap, getBeliefAttributeString, getBeliefAttributeString, getBeliefAttributeString, getBeliefAttributeValue, getBeliefAttributeValue, getBeliefAttributeValue, getBeliefRelationConcepts, getContext, getFactAttributeBoolean, getFactAttributeBoolean, getFactAttributeBoolean, getFactAttributeByte, getFactAttributeByte, getFactAttributeByte, getFactAttributeChar, getFactAttributeChar, getFactAttributeChar, getFactAttributeConcept, getFactAttributeConcept, getFactAttributeConcept, getFactAttributeDouble, getFactAttributeDouble, getFactAttributeDouble, getFactAttributeFloat, getFactAttributeFloat, getFactAttributeFloat, getFactAttributeInt, getFactAttributeInt, getFactAttributeInt, getFactAttributeJava, getFactAttributeJava, getFactAttributeJava, getFactAttributeLong, getFactAttributeLong, getFactAttributeLong, getFactAttributeMap, getFactAttributeShort, getFactAttributeShort, getFactAttributeShort, getFactAttributeSortedMap, getFactAttributeString, getFactAttributeString, getFactAttributeString, getFactAttributeValue, getFactAttributeValue, getFactAttributeValue, getFactRelationConcepts, getModel, getName, getParameter, getParameterBoolean, getParameterByte, getParameterChar, getParameterConcept, getParameterCount, getParameterDouble, getParameterFloat, getParameterInt, getParameterJava, getParameterLong, getParameterShort, getParameterString, getParameterStringOrSymbol, getParameterSymbol, getParameterValue, getParameterValues, getPerformedBy, getVMController, getWorldState, hasBeliefAttributeAnyValue, hasBeliefAttributeAnyValue, hasBeliefAttributeAnyValue, hasBeliefAttributeValue, hasBeliefAttributeValue, hasBeliefAttributeValue, hasBeliefRelationAnyValue, hasBeliefRelationValue, hasFactAttributeAnyValue, hasFactAttributeAnyValue, hasFactAttributeAnyValue, hasFactAttributeValue, hasFactAttributeValue, hasFactAttributeValue, hasFactRelationAnyValue, hasFactRelationValue, hasMultipleParameterValues, isParameterUnbound, isParameterUnknown, isValidTruthValue, removeAllBeliefRelationValues, removeAllFactRelationValues, removeBeliefRelationConcept, removeFactRelationConcept, retractBelief, retractFact, send, send, send, send, setActivity, setBeliefAttributeBoolean, setBeliefAttributeBoolean, setBeliefAttributeBoolean, setBeliefAttributeByte, setBeliefAttributeByte, setBeliefAttributeByte, setBeliefAttributeChar, setBeliefAttributeChar, setBeliefAttributeChar, setBeliefAttributeConcept, setBeliefAttributeConcept, setBeliefAttributeConcept, setBeliefAttributeDouble, setBeliefAttributeDouble, setBeliefAttributeDouble, setBeliefAttributeFloat, setBeliefAttributeFloat, setBeliefAttributeFloat, setBeliefAttributeInt, setBeliefAttributeInt, setBeliefAttributeInt, setBeliefAttributeJava, setBeliefAttributeJava, setBeliefAttributeJava, setBeliefAttributeJava, setBeliefAttributeJava, setBeliefAttributeJava, setBeliefAttributeLong, setBeliefAttributeLong, setBeliefAttributeLong, setBeliefAttributeShort, setBeliefAttributeShort, setBeliefAttributeShort, setBeliefAttributeString, setBeliefAttributeString, setBeliefAttributeString, setBeliefAttributeSymbol, setBeliefAttributeSymbol, setBeliefAttributeSymbol, setBeliefAttributeUnknown, setBeliefAttributeUnknown, setBeliefAttributeUnknown, setBeliefRelationUnknown, setFactAttributeBoolean, setFactAttributeBoolean, setFactAttributeBoolean, setFactAttributeByte, setFactAttributeByte, setFactAttributeByte, setFactAttributeChar, setFactAttributeChar, setFactAttributeChar, setFactAttributeConcept, setFactAttributeConcept, setFactAttributeConcept, setFactAttributeDouble, setFactAttributeDouble, setFactAttributeDouble, setFactAttributeFloat, setFactAttributeFloat, setFactAttributeFloat, setFactAttributeInt, setFactAttributeInt, setFactAttributeInt, setFactAttributeJava, setFactAttributeJava, setFactAttributeJava, setFactAttributeJava, setFactAttributeJava, setFactAttributeJava, setFactAttributeLong, setFactAttributeLong, setFactAttributeLong, setFactAttributeShort, setFactAttributeShort, setFactAttributeShort, setFactAttributeString, setFactAttributeString, setFactAttributeString, setFactAttributeSymbol, setFactAttributeSymbol, setFactAttributeSymbol, setFactAttributeUnknown, setFactAttributeUnknown, setFactAttributeUnknown, setFactRelationUnknown, setParameterBoolean, setParameterByte, setParameterChar, setParameterConcept, setParameterDouble, setParameterFloat, setParameterInt, setParameterJava, setParameterJava, setParameterLong, setParameterShort, setParameterString, setParameterUnknown, setProperties, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CreateExternalAgentActivity

public CreateExternalAgentActivity()
Method Detail

doActivity

public void doActivity()
                throws ExternalException
Executes the java activity action.

Specified by:
doActivity in interface IExternalActivity
Specified by:
doActivity in class AbstractExternalActivity
Throws:
ExternalException - if an unrecoverable error occurs.


Copyright © 1997-2012 All Rights Reserved.