Disruption

public abstract class Disruption

Abstract class for a disruption.

Author:Milan Lovric

Fields

installed

protected boolean installed

props

protected Properties props

Constructors

Disruption

protected Disruption(Properties props)

Disruption

protected Disruption(String fileName)

Methods

getEndYear

public int getEndYear()
Returns:The last year in which intervention still remains installed.

getProperty

public String getProperty(String key)
Parameters:
  • key – Name of the property
Returns:

Property

getStartYear

public int getStartYear()
Returns:The year in which intervention is installed.

getState

public boolean getState()
Returns:The state of the disruption (installed or not).

install

public abstract void install(Object o)

toString

public String toString()

uninstall

public abstract void uninstall(Object o)