inria.util
Class Entity

java.lang.Object
  |
  +--inria.util.Entity
Direct Known Subclasses:
LrmpEntity

public class Entity
extends java.lang.Object

an entity is anything identified by an interger ID.


Field Summary
protected  int id
           
 
Constructor Summary
Entity(int id)
          constructs an Entity.
 
Method Summary
 boolean equals(Entity obj)
          compares with the given entity for equality.
 int getID()
          returns the id.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected int id
Constructor Detail

Entity

public Entity(int id)
constructs an Entity.
Parameters:
id - the entity id.
Method Detail

equals

public boolean equals(Entity obj)
compares with the given entity for equality.
Parameters:
obj - the entity to compare.

getID

public int getID()
returns the id.


JavaTM Reliable MulticastTM Service version 1.1
Copyright (c) 2001, Sun Microsystems Laboratories, All rights reserved.