Intervention

public abstract class Intervention

Abstract class for policy interventions.

Author:Milan Lovric

Fields

installed

protected boolean installed

props

protected Properties props

Constructors

Intervention

protected Intervention(Properties props)

Intervention

protected Intervention(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()

install

public abstract void install(Object o)

toString

public String toString()

uninstall

public abstract void uninstall(Object o)