 |
|
|
Virus.java
|
/**
* This interface defines the basic functions of a
* Virus. Implementing it should allow an attempt at
* infecting a Host with this Virus.
*
* @author Havard Rast Blok
*
*/
public interface Virus {
/**
* Trys to infect the given Host with this Virus.
* A succesful infection is determinted by the
* ... probabilites implemented in the concrete
* Virus and relevant host.
*
* @param host the Host to attempt to infect
*/
public void infect(Host host);
}
|
|
|
 |