Dicop::Data::Chunk::Checklist - a chunk in the checklist of a L in the L system.


Dicop-Server documentation  | view source Contained in the Dicop-Server distribution.

Index


NAME

Top

Dicop::Data::Chunk::Checklist - a chunk in the checklist of a Job in the Dicop (Dicop::Dicop) system.

SYNOPSIS

Top

	use Dicop::Data::Chunk::Checklist;
	use Dicop qw(TOBEDONE);

	$chunk = Dicop::Data::Chunk::Checklist->new (
			start => 'aaa', end => 'zzz',
			job => $job, status => TOBEDONE, ); 

REQUIRES

Top

perl5.005, Exporter, Dicop, Dicop::Event, Dicop::Data, Math::BigInt, Math::String, Digest::MD5

EXPORTS

Top

Exports nothing on default.

DESCRIPTION

Top

This is a subclass of Dicop::Data::Chunk and used to store in the checklist of a job. These chunks are mostly like all other chunks, but are marked as belonging to the checklist by their classname.

In addition, they also have some additional methods that are only necessary for chunks in the checklist, namely shrink().

METHODS

Top

In addition to the normal methods of Dicop::Data::Chunk, the following methods are overwritten or new:

shrink

	$self->shrink($result,$factor,$fixed);

Takes the chunk and a result between start and end and shrinks the chunk around the result to 1/$factor of the original size. Also takes care to round the new borders up and down, respectively, so that the new chunk size is always smaller or equal to the old one. Also takes care of "fixed chars" at the two new borders.

Example for $factor == 10:

	original start	<--|
			   | 9/20
	new start       <--|		<---|
			   | 1/20	    | new size:
	result		<--|		    | 2/20 == 1/10
			   | 1/20    	    |
	new end		<--|		<---|
			   | 9/20
	original end	<--|

Return error string on error, otherwise $self.

BUGS

Top

None known yet.

AUTHOR

Top

(c) Bundesamt fuer Sicherheit in der Informationstechnik 1998-2006

DiCoP is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

See http://www.bsi.de/ for more information.


Dicop-Server documentation  | view source Contained in the Dicop-Server distribution.