NNGGA Object. More...
#include <nngga.h>
Inheritance diagram for RObjNN:
Collaboration diagram for RObjNN:
Public Member Functions | |
RObjNN (const size_t id, const RString &name, bool social=true, size_t parentid=0) | |
bool | IsSocial (void) const |
size_t | GetParentId (void) const |
Public Member Functions inherited from RObjG | |
RObjG (const size_t id, const RString &name) | |
int | Compare (const size_t id) const |
int | Compare (const RObjG &obj) const |
int | Compare (const RObjG *obj) const |
size_t | GetId (void) const |
RString | GetName (void) const |
virtual | ~RObjG (void) |
Protected Attributes | |
bool | Social |
size_t | ParentId |
Protected Attributes inherited from RObjG | |
size_t | Id |
RString | Name |
Detailed Description
NNGGA Object.
The RObjNN class provides a representation of an object to group by the Nearest Neighbors Grouping Genetic Algorithm.
Constructor & Destructor Documentation
Construct the object.
- Parameters
-
id Identifier. name Name of the object. social Is the object social. parentid Identifier of the parent (if any).
Member Function Documentation
bool IsSocial | ( | void | ) | const |
See if the element is social or not.
size_t GetParentId | ( | void | ) | const |
Get the identifier of the parent or 0 if there is no parent.
Member Data Documentation
|
protected |
Can the element be grouped in a group alone?
|
protected |
Identifier of a common parent between elements that could prevent to group them together.