package org.opentrafficsim.demo.ntm; import org.djunits.value.vdouble.scalar.Length; import org.djunits.value.vdouble.scalar.Speed; import org.locationtech.jts.geom.Coordinate; import org.locationtech.jts.geom.Geometry; import org.opentrafficsim.demo.ntm.NTMNode.TrafficBehaviourType; /** *
* Copyright (c) 2013-2017 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
* BSD-style license. See OpenTrafficSim License.
*
* $LastChangedDate$, @version $Revision$, by $Author$,
* initial version 2 Mar 2015
* @author Alexander Verbraeck
* @author Hans van Lint
* @author Peter Knoppers
* @author Guus Tamminga
* @author Yufei Yuan
*/
public class AreaFlowLink extends Area
{
/** */
private LinkCellTransmission flowLink;
/** */
private int indexCell;
/**
* @param geometry Geometry;
* @param centroidNr String;
* @param name String;
* @param gemeente String;
* @param gebied String;
* @param regio String;
* @param dhb double;
* @param centroid Coordinate;
* @param trafficBehaviourType TrafficBehaviourType;
* @param roadLength Length;
* @param averageSpeed Speed;
* @param increaseDemandByFactor double;
* @param parametersNTM ParametersNTM;
* @param flowLink LinkCellTransmission;
* @param indexCell int;
*/
public AreaFlowLink(Geometry geometry, String centroidNr, String name, String gemeente, String gebied, String regio,
double dhb, Coordinate centroid, TrafficBehaviourType trafficBehaviourType, Length roadLength, Speed averageSpeed,
double increaseDemandByFactor, ParametersNTM parametersNTM, LinkCellTransmission flowLink, int indexCell)
{
super(geometry, centroidNr, name, gemeente, gebied, regio, dhb, centroid, trafficBehaviourType, roadLength,
averageSpeed, increaseDemandByFactor, parametersNTM);
this.flowLink = flowLink;
this.indexCell = indexCell;
}
/**
* @return flowLink.
*/
public LinkCellTransmission getFlowLink()
{
return this.flowLink;
}
/**
* @param flowLink LinkCellTransmission; set flowLink.
*/
public void setFlowLink(LinkCellTransmission flowLink)
{
this.flowLink = flowLink;
}
/**
* @return indexCell.
*/
public int getIndexCell()
{
return indexCell;
}
/**
* @param indexCell int; set indexCell.
*/
public void setIndexCell(int indexCell)
{
this.indexCell = indexCell;
}
}