gov.nasa.arc.brahms.vm.api.common
Interface IClass

All Superinterfaces:
IActiveClass, IActiveConcept, IConcept, IType, IUserDefinedType

public interface IClass
extends IActiveClass

The concept of a 'class' in Brahms is similar to the concept of a template or class in object-oriented programming. It defines the activities (workframes), initial-facts and initial-beliefs for instances of that class (i.e. 'objects'). Classes are used to define inanimate artifacts, such as phones, faxes, computer systems, pieces of paper, etc.


Field Summary
 
Fields inherited from interface gov.nasa.arc.brahms.vm.api.common.IUserDefinedType
UDT
 
Method Summary
 IObject newInstance(java.lang.String name, IContext actionCtx)
          newInstance creates a new instance of this class and returns the new instance.
 
Methods inherited from interface gov.nasa.arc.brahms.vm.api.common.IActiveConcept
hasThoughtframes, hasWorkframes
 
Methods inherited from interface gov.nasa.arc.brahms.vm.api.common.IConcept
getAttribute, getName, getRelation, isLocal
 
Methods inherited from interface gov.nasa.arc.brahms.vm.api.common.IType
getType
 

Method Detail

newInstance

IObject newInstance(java.lang.String name,
                    IContext actionCtx)
                    throws ExternalException
newInstance creates a new instance of this class and returns the new instance. The new instance is given the specified name. If the name already exists a unique number will be attached to the name.

Parameters:
name - the name of the new instance
actionCtx - the IContext for the action
Returns:
IObject the new instance of this class
Throws:
ExternalException - if the creation of the new instance fails