# Copyright (c) 1999-2008 bivio Software, Inc. All rights reserved. # # Visit http://www.bivio.biz for more info. # # This library is free software; you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2.1 of the # License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; If not, you may get a copy from: # http://www.opensource.org/licenses/lgpl-license.html # # $Id: TaskId.pm,v 2.4 2010/11/15 22:05:33 nagler Exp $ package Bivio::Agent::TaskId; use strict; use Bivio::Base 'Type.EnumDelegator'; # C defines all possible "tasks" within bOP site. A # structure of a task is defined in L. # # The syntax of the configuration table is defined as follows: # # NAME_OF_TASK # # # # # # ... # attribute1=value1 # attribute2=value2 # ... # # The first two entries are what defines the TaskId enumerated type. # The subsequent entries are configuration for the Task instance itself. # See L for a description. our($VERSION) = sprintf('%d.%02d', q$Revision: 2.4 $ =~ /\d+/g); my($_CFG) = b_use('IO.ClassLoader')->delegate_require_info(__PACKAGE__); __PACKAGE__->compile([ map(($_->{name}, [$_->{int}]), @{__PACKAGE__->get_cfg_list})]); sub get_cfg_list { return $_CFG; } sub is_continuous { return 0; } 1;