|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgov.nasa.arc.brahms.vm.api.jac.AbstractExternalActivity
brahms.base.system.AddObjectToArrayActivity
public class AddObjectToArrayActivity
The AddObjectToArrayActivity allows a modeler to pass a bound source array variable, an unbound destination array variable and a java object variable all of the same component-type. The activity will create a new array with length = source.length + 1. It will copy all elements from the source array to the new array and add the given object to its end. It will then bind the new array to the destination array variable. The Brahms java activity declaration takes three parameters:
| Constructor Summary | |
|---|---|
AddObjectToArrayActivity()
|
|
| Method Summary | |
|---|---|
void |
doActivity()
Grow the array by one and add the object to its end. |
| Methods inherited from class gov.nasa.arc.brahms.vm.api.jac.AbstractExternalActivity |
|---|
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, getContext, getModel, getName, getParameter, getParameterCount, getPerformedBy, getVMController, getWorldState, isValidTruthValue, retractBelief, retractFact, send, send, send, send, setActivity, setProperties, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AddObjectToArrayActivity()
| Method Detail |
|---|
public void doActivity()
throws ExternalException
doActivity in interface IExternalActivitydoActivity in class AbstractExternalActivityExternalException - if an internal error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||