| 1 | # | ||
| 2 | # World_Option contains options that specify the default viewoport and axes o the graph | ||
| 3 | # | ||
| 4 | ## This software product is developed by Esmond Lee and David Moore, | ||
| 5 | ## and copyrighted(C) 1998 by the University of California, San Diego | ||
| 6 | ## (UCSD), with all rights reserved. UCSD administers the CAIDA grant, | ||
| 7 | ## NCR-9711092, under which part of this code was developed. | ||
| 8 | ## | ||
| 9 | ## There is no charge for this software. You can redistribute it and/or | ||
| 10 | ## modify it under the terms of the GNU General Public License, v. 2 dated | ||
| 11 | ## June 1991 which is incorporated by reference herein. This software is | ||
| 12 | ## distributed WITHOUT ANY WARRANTY, IMPLIED OR EXPRESS, OF MERCHANTABILITY | ||
| 13 | ## OR FITNESS FOR A PARTICULAR PURPOSE or that the use of it will not | ||
| 14 | ## infringe on any third party's intellectual property rights. | ||
| 15 | ## | ||
| 16 | ## You should have received a copy of the GNU GPL along with this program. | ||
| 17 | ## | ||
| 18 | ## | ||
| 19 | ## IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY | ||
| 20 | ## PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL | ||
| 21 | ## DAMAGES, INCLUDING LOST PROFITS, ARISING OUT OF THE USE OF THIS | ||
| 22 | ## SOFTWARE, EVEN IF THE UNIVERSITY OF CALIFORNIA HAS BEEN ADVISED OF | ||
| 23 | ## THE POSSIBILITY OF SUCH DAMAGE. | ||
| 24 | ## | ||
| 25 | ## THE SOFTWARE PROVIDED HEREIN IS ON AN "AS IS" BASIS, AND THE | ||
| 26 | ## UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION TO PROVIDE MAINTENANCE, | ||
| 27 | ## SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. THE UNIVERSITY | ||
| 28 | ## OF CALIFORNIA MAKES NO REPRESENTATIONS AND EXTENDS NO WARRANTIES | ||
| 29 | ## OF ANY KIND, EITHER IMPLIED OR EXPRESS, INCLUDING, BUT NOT LIMITED | ||
| 30 | ## TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A | ||
| 31 | ## PARTICULAR PURPOSE, OR THAT THE USE OF THE SOFTWARE WILL NOT INFRINGE | ||
| 32 | ## ANY PATENT, TRADEMARK OR OTHER RIGHTS. | ||
| 33 | ## | ||
| 34 | ## | ||
| 35 | ## Contact: graph-dev@caida.org | ||
| 36 | ## | ||
| 37 | ## | ||
| 38 | |||
| 39 | $VERSION = 3.2; | ||
| 40 | |||
| 41 | package World_Option; | ||
| 42 | use Base_Option; | ||
| 43 | @ISA = qw(Base_Option); | ||
| 44 | use Carp; | ||
| 45 | |||
| 46 | my %def_world_options = ( | ||
| 47 | "xmin" => "0", | ||
| 48 | "xmax" => "1", | ||
| 49 | "ymin" => "0", | ||
| 50 | "ymax" => "1", | ||
| 51 | ); | ||
| 52 | my %other_stuff = ( | ||
| 53 | "name" => "world", | ||
| 54 | "print_order" => ["xmin","xmax","ymin","ymax"], | ||
| 55 | "length" => 4, | ||
| 56 | "options" => { | ||
| 57 | %def_world_options, | ||
| 58 | }, | ||
| 59 | ); | ||
| 60 | |||
| 61 | sub new { | ||
| 62 | my $this = shift; | ||
| 63 | my $class = ref($this) || $this; | ||
| 64 | my $self = {%other_stuff}; | ||
| 65 | bless $self, $class; | ||
| 66 | return $self; | ||
| 67 | } | ||
| 68 | |||
| 69 | 1; |