brahms.io
Class DeleteFileActivity

java.lang.Object
  extended by gov.nasa.arc.brahms.vm.api.jac.AbstractExternalActivity
      extended by brahms.io.DeleteFileActivity
All Implemented Interfaces:
IExternalActivity

public class DeleteFileActivity
extends AbstractExternalActivity

The DeleteFileActivity allows a modeler to delete a file or folder. The file/folder to be deleted must be an absolute path to the file/folder. The filename may contain wildcards (* and ?), but only in the last name in the path. If the specified file/folder does not exist the activity will silently succeed assuming that the file was already deleted. If the isFolder flag is set to true and the filename does not specify a folder the delete will fail. If the isFolder is set to false (default) and the filename specifies a folder the delete will also fail.

This activity requires two parameters in the Brahms java activity declaration and one optional parameter:

Version:
$Revision: 1.4 $ $Date: 2007/12/19 19:03:55 $ $Author: rvhoof $
Author:
Ron van Hoof

Constructor Summary
DeleteFileActivity()
           
 
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

DeleteFileActivity

public DeleteFileActivity()
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.
See Also:
AbstractExternalActivity.doActivity()


Copyright © 1997-2012 All Rights Reserved.