KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > javacoding > jspider > core > model > SummaryInternal


1 package net.javacoding.jspider.core.model;
2
3 import net.javacoding.jspider.api.model.Summary;
4
5 /**
6  * $Id: SummaryInternal.java,v 1.2 2003/03/24 16:58:35 vanrogu Exp $
7  */

8 public class SummaryInternal implements Summary {
9
10     protected int known;
11     protected int parsed;
12     protected int ignoredForFetching;
13     protected int ignoredForParsing;
14     protected int fetchErrors;
15     protected int parseErrors;
16     protected int forbidden;
17     protected int unvisited;
18
19     public SummaryInternal ( int known, int parsed, int ignoredForFetching, int ignoredForParsing, int fetchErrors, int parseErrors, int forbidden, int unvisited) {
20         this.known = known;
21         this.parsed = parsed;
22         this.ignoredForFetching = ignoredForFetching;
23         this.ignoredForParsing = ignoredForParsing;
24         this.fetchErrors = fetchErrors;
25         this.parseErrors = parseErrors;
26         this.forbidden = forbidden;
27         this.unvisited = unvisited;
28     }
29
30     public int getKnown() {
31         return known;
32     }
33
34     public int getVisited() {
35         return (getParsed() + getIgnoredForParsing() + getParseErrors());
36     }
37
38     public int getNotVisited() {
39         return (getKnown() - (getParsed() + getIgnoredForParsing() + getParseErrors()));
40     }
41
42     public int getParsed() {
43         return parsed;
44     }
45
46     public int getIgnoredForFetching() {
47         return ignoredForFetching;
48     }
49
50     public int getIgnoredForParsing() {
51         return ignoredForParsing;
52     }
53
54     public int getFetchErrors() {
55         return fetchErrors;
56     }
57
58     public int getParseErrors() {
59         return parseErrors;
60     }
61
62     public int getForbidden() {
63         return forbidden;
64     }
65
66     public int getUnvisited() {
67         return unvisited;
68     }
69
70 }
71
Popular Tags