ACRUSalinity.Processes.SaltInput
Class PIrrigSaltInput

java.lang.Object
  extended byACRU.Components.CNode
      extended byACRU.Processes.PProcess
          extended byACRUSalinity.Processes.SaltInput.PSaltInput
              extended byACRUSalinity.Processes.SaltInput.PIrrigSaltInput
All Implemented Interfaces:
ACRU.Interfaces.ISaltFlow

public class PIrrigSaltInput
extends PSaltInput

calculates the quantity of salt load added to an irrigated area based on the volume of rain falling on the irrigated land and applied irrigation water as well as their associated salinity.

Author:
Aynom Teweldebrhan

Field Summary
protected  ACRU.Components.Climate.CClimate m_CClimate
           
protected  ACRU.Components.CIrrigatedArea m_CIrrigatedArea
           
protected  ACRU.Components.CLandSegment m_CLandSegment
           
protected  ACRU.Components.Soils.CSoil soil
           
protected  java.util.Vector soilHorizons
           
protected  ACRU.Components.Soils.CHorizon subsoilHorizon
           
protected  ACRU.Components.Soils.CSoil thisCSoil
           
protected  ACRU.Components.Soils.CHorizon topsoilHorizon
           
 
Fields inherited from class ACRU.Processes.PProcess
CURRENT_DATE, END_SIMULATION_DATE, initialised, START_SIMULATION_DATE
 
Fields inherited from class ACRU.Components.CNode
 
Constructor Summary
PIrrigSaltInput(ACRU.Components.CComponent source)
          Constructor that requires a CIrrigatedArea type of CComponent as an argument.
PIrrigSaltInput(ACRU.Components.CIrrigatedArea irrigatedArea)
          Constructor that takes CIrrigatedArea object as an argument.
 
Method Summary
 void calcSaltInputs()
           
 void flowSalt()
          The method in which the salt flow behaviour is implemented .
private  void setRequiredData()
           
 
Methods inherited from class ACRUSalinity.Processes.SaltInput.PSaltInput
runProcess, transportSalt
 
Methods inherited from class ACRU.Processes.PProcess
initialise, isInitialised, setCurrentDate, setEndDate, setStartDate, toString
 
Methods inherited from class ACRU.Components.CNode
getNext, getNext, getNext, getNext, getNextCount, getNextCount, getNexts, getNexts, getTypeOfNexts, getTypeOfNexts, setNext, setNext, setNext, setNext, setNext, setNexts, setNexts, setNexts
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_CClimate

protected ACRU.Components.Climate.CClimate m_CClimate

m_CLandSegment

protected ACRU.Components.CLandSegment m_CLandSegment

m_CIrrigatedArea

protected ACRU.Components.CIrrigatedArea m_CIrrigatedArea

thisCSoil

protected ACRU.Components.Soils.CSoil thisCSoil

soilHorizons

protected java.util.Vector soilHorizons

soil

protected ACRU.Components.Soils.CSoil soil

topsoilHorizon

protected ACRU.Components.Soils.CHorizon topsoilHorizon

subsoilHorizon

protected ACRU.Components.Soils.CHorizon subsoilHorizon
Constructor Detail

PIrrigSaltInput

public PIrrigSaltInput(ACRU.Components.CIrrigatedArea irrigatedArea)
Constructor that takes CIrrigatedArea object as an argument.

Throws:
java.lang.Exception - Exceptions not dealt with internally.

PIrrigSaltInput

public PIrrigSaltInput(ACRU.Components.CComponent source)
                throws ACRU.Exceptions.EIllegalComponentTypeException,
                       ACRU.Exceptions.EException
Constructor that requires a CIrrigatedArea type of CComponent as an argument.

Parameters:
source - The irrigated area to which the Salt load from rainfall and/or irrigation water is being added.
Throws:
java.lang.Exception - Exceptions not dealt with internally.
ACRU.Exceptions.EIllegalComponentTypeException - If the argument CComponent is not an instance of CIrrigatedArea.
ACRU.Exceptions.EException
Method Detail

setRequiredData

private void setRequiredData()

flowSalt

public void flowSalt()
              throws java.lang.Exception,
                     ACRU.Exceptions.EException
Description copied from interface: ACRU.Interfaces.ISaltFlow
The method in which the salt flow behaviour is implemented .

Specified by:
flowSalt in interface ACRU.Interfaces.ISaltFlow
Specified by:
flowSalt in class PSaltInput
Throws:
java.lang.Exception
ACRU.Exceptions.EException

calcSaltInputs

public void calcSaltInputs()
                    throws java.lang.Exception,
                           ACRU.Exceptions.EException
Throws:
java.lang.Exception
ACRU.Exceptions.EException


Hosted by www.Geocities.ws

1