package net.websoup.wormscan; /* * This file is part of WormScan. * * WormScan is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ import java.util.Date; import net.websoup.wormscan.Worm; import net.websoup.wormscan.AttackSource; /** * Store everything we know about an attack. * Copyright: Copyright (c) 2001-2004 Andriy Rozeluk * @author Andriy Rozeluk * @version 1.6.1 */ public class Attack { private Date date; private Worm worm; private AttackSource source; public Attack( Date dateOfAttack, Worm attackingWorm, AttackSource sourceOfAttack ){ date = dateOfAttack; worm = attackingWorm; source = sourceOfAttack; } public Date getDateOfAttack(){ return date; } public Worm getAttackingWorm(){ return worm; } public AttackSource getSourceOfAttack(){ return source; } }