Public Member Functions | Static Public Member Functions | Public Attributes
RAIN.Ontology.Aspect Class Reference

An Aspect defines an observable characteristic of an object. Aspects are identified by their name and by the sensation that would be used to detect the Aspect. Aspects do not themselves have definitions, but instead are defined entirely by their relationship (coexistence with) other Aspects and the interpretation of the sensing entity. More...

Inheritance diagram for RAIN.Ontology.Aspect:
RAIN.Ontology.Observable

List of all members.

Public Member Functions

 Aspect ()
 default constructor
 Aspect (string aName, Sensation s)
 Constructor for initializing an Aspect with a name and Sensation.
Aspect Clone ()
 Clone makes a shallow copy of an Aspect, copying only the Aspect name and cloning the Sensation.
Aspect[] GetAspects ()
 GetAspects returns Aspects directly associated with an Observable. Aspects themselves are observable, meaning that Aspects can have Aspects.
Aspect[] GetAllAspects ()
 GetAllAspects returns all Aspects associated with an Observable, either directly or nested in its hierarchy.

Static Public Member Functions

static bool HasAspect (GameObject obj, string aspect, string sensation)
static bool HasAspect (GameObject obj, string aspect)
static void RemoveAspect (GameObject obj, string aspect)
static void AddAspect (GameObject obj, string aspect, string sensation)

Public Attributes

string aspectName
 The name of the Aspect.
Sensation sensation
 The Sensation associated with the Aspect.

Detailed Description

An Aspect defines an observable characteristic of an object. Aspects are identified by their name and by the sensation that would be used to detect the Aspect. Aspects do not themselves have definitions, but instead are defined entirely by their relationship (coexistence with) other Aspects and the interpretation of the sensing entity.


Constructor & Destructor Documentation

default constructor

RAIN.Ontology.Aspect.Aspect ( string  aName,
Sensation  s 
)

Constructor for initializing an Aspect with a name and Sensation.

Parameters:
aNameThe name of the Aspect
sThe Sensation associated with the Aspect

Member Function Documentation

Clone makes a shallow copy of an Aspect, copying only the Aspect name and cloning the Sensation.

Returns:
Returns a new Aspect with the same name and Sensation as the original

GetAllAspects returns all Aspects associated with an Observable, either directly or nested in its hierarchy.

Returns:
Returns an array of Aspects

Implements RAIN.Ontology.Observable.

GetAspects returns Aspects directly associated with an Observable. Aspects themselves are observable, meaning that Aspects can have Aspects.

Returns:
Returns an array of Aspects

Implements RAIN.Ontology.Observable.


Member Data Documentation

The name of the Aspect.

The Sensation associated with the Aspect.