nl.tudelft.simulation.yellowpage
Class Category

java.lang.Object
  extended bynl.tudelft.simulation.yellowpage.Category

public class Category
extends java.lang.Object

A Category to be used in storing and finding 'topics' in the YellowPage.

Copyright (c) 2003-2005 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information www.simulation.tudelft.nl . The source code and binary code of this software is proprietary information of Delft University of Technology.

Version:
$$Revision: 1.3 $$ $$Date: 2005/04/08 11:29:13 $$
Author:
Peter Jacobs

Constructor Summary
Category(java.lang.String description)
          constructs a new Category
 
Method Summary
 Category getParent()
          returns the parent of this category
static boolean specializationOf(Category cat1, Category cat2)
          determines whether cat1 is a specialization of cat2
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Category

public Category(java.lang.String description)
constructs a new Category

Parameters:
description - the description of the category
Method Detail

getParent

public Category getParent()
returns the parent of this category

Returns:
Category the parent

specializationOf

public static boolean specializationOf(Category cat1,
                                       Category cat2)
determines whether cat1 is a specialization of cat2

Parameters:
cat1 - the first category
cat2 - the second category
Returns:
boolean succes

toString

public java.lang.String toString()
See Also:
Object.toString()


Copyright © 2004-2005 Delft University of Technology, the Netherlands. All Rights Reserved.