"SfR Fresh" - the SfR Freeware/Shareware Archive 
Member "wormscan-1.6.1-src/net/websoup/wormscan/Attack.java" of archive wormscan-1.6.1-src.tar.gz:
As a special service "SfR Fresh" has tried to format the requested source page into HTML format using source code syntax highlighting with prefixed line numbers.
Alternatively you can here view or download the uninterpreted source code file.
That can be also achieved for any archive member file by clicking within an archive contents listing on the first character of the file(path) respectively on the according byte size field.
1 package net.websoup.wormscan;
2
3 /*
4 * This file is part of WormScan.
5 *
6 * WormScan is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 */
20
21 import java.util.Date;
22
23 import net.websoup.wormscan.Worm;
24 import net.websoup.wormscan.AttackSource;
25
26 /**
27 * Store everything we know about an attack.
28 * Copyright: Copyright (c) 2001-2004 Andriy Rozeluk <arozeluk@websoup.net>
29 * @author Andriy Rozeluk
30 * @version 1.6.1
31 */
32 public class Attack {
33 private Date date;
34 private Worm worm;
35 private AttackSource source;
36
37 public Attack( Date dateOfAttack, Worm attackingWorm, AttackSource sourceOfAttack ){
38 date = dateOfAttack;
39 worm = attackingWorm;
40 source = sourceOfAttack;
41 }
42
43 public Date getDateOfAttack(){
44 return date;
45 }
46
47 public Worm getAttackingWorm(){
48 return worm;
49 }
50
51 public AttackSource getSourceOfAttack(){
52 return source;
53 }
54 }