brahms.base.system
Class GetJavaAttributeValueActivity

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

public class GetJavaAttributeValueActivity
extends AbstractExternalActivity

The GetJavaAttributeValueActivity allows a Brahms active instance to retrieve the value for a primitive-type or Object attribute of a java object. The Brahms java activity declaration takes four parameters:

This activity uses the java reflection package to invoke the appropriate method on the given java object. The name of the method to be invoked will be constructed by first capitalizing the String value of the javaAttributeName parameter the adding the prefix "is" for boolean return types and "get" for all other return types. e.g. if the javaAttributeName passed to this activity is "name" and the returnValue parameter is a variable of type 'string' then this activity will attempt to invoke a method with the signature 'public String getName()' and bind the returned value to the variable.

Version:
$Revision: 1.4 $ $Date: 2009/11/29 21:52:52 $ $Author: rnado $
Author:
Mike Scott

Field Summary
static org.apache.log4j.Logger LOGGER
           
 
Constructor Summary
GetJavaAttributeValueActivity()
           
 
Method Summary
 void doActivity()
          Performs the activity
 
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
 

Field Detail

LOGGER

public static final org.apache.log4j.Logger LOGGER
Constructor Detail

GetJavaAttributeValueActivity

public GetJavaAttributeValueActivity()
Method Detail

doActivity

public void doActivity()
                throws ExternalException
Performs the activity

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


Copyright © 1997-2012 All Rights Reserved.