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.
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.IType |
getType |
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 instanceactionCtx
- the IContext for the action
- Returns:
- IObject the new instance of this class
- Throws:
ExternalException
- if the creation of the new instance fails