NAME

CCO::Util::CCO_ID_Set - An implementation of a set of CCO::Util::CCO_ID objects.

SYNOPSIS

use CCO::Util::CCO_ID_Set;

use CCO::Util::CCO_ID;

$cco_id_set = CCO::Util::CCO_ID_Set->new();

$id = CCO::Util::CCO_ID->new();

$size = $cco_id_set->size();

if ($cco_id_set->add($id)) { ... }

$new_id = $cco_id_set->get_new_id("CCO", "C");

DESCRIPTION

The CCO::Util::CCO_ID_Set class implements a Cell-Cycle Ontology identifiers set.

AUTHOR

Erick Antezana, <erant@psb.ugent.be>

COPYRIGHT AND LICENSE

Copyright (C) 2006 by erant

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.7 or, at your option, any later version of Perl 5 you may have available.

add_as_string

Usage    - $set->add_as_string($id)
Returns  - the added id (CCO::Util::CCO_ID)
Args     - the CCO id (string) to be added
Function - adds an CCO_ID to this set

add_all_as_string

Usage    - $set->add_all_as_string($id1, $id2, ...)
Returns  - the last added id (CCO::Util::CCO_ID)
Args     - the id(s) (strings) to be added
Function - adds a series of CCO_IDs to this set

get_new_id

Usage    - $set->get_new_id($idspace, $subnamespace)
Returns  - a new CCO id (string)
Args     - none
Function - returns a new CCO ID as string and adds this id to the set