eosim::core::EntityComp Class Reference
[Modeling Clases]

#include <eosim/core/entity.hpp>

Inheritance diagram for eosim::core::EntityComp:

Inheritance graph
[legend]
List of all members.

Detailed Description

Entities Abstract Comparator.

Author:
Sebastián Alaggia
Version:
1.0.1
Date:
2005

EntityComp is the parent class of all Entity Comparators and it is the only EOSimulator’s abstract class that is used optionally. Its main operation is EntityComp::compare, which compare two entities. These comparators are user defined classes. There are used to create priority queues according to the needs of the programmer.


Public Member Functions

 EntityComp ()
virtual ~EntityComp ()
virtual bool compare (Entity *e1, Entity *e2)=0


Constructor & Destructor Documentation

eosim::core::EntityComp::EntityComp (  ) 

The constructor creates an EntityComp.

virtual eosim::core::EntityComp::~EntityComp (  )  [virtual]

The destructor of EntityComp.


Member Function Documentation

virtual bool eosim::core::EntityComp::compare ( Entity e1,
Entity e2 
) [pure virtual]

This abstract operation compares e1 and e2. This is the main operations of Comparators. The programmer has to give a method to this operation to implement a specific comparator.


Generated on Tue Sep 19 14:57:05 2006 for EOSimulator by  doxygen 1.4.7