public class ATDMPlan
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
description
ATDM plan description
|
private boolean |
hasRampMetering
Whether this ATDM plan has ramp metering
|
private boolean |
hasShoulderOpening
Whether this ATDM plan has shoulder opening
|
private int |
id
ATDM plan ID
|
private java.lang.String |
name
ATDM plan name
|
private static long |
serialVersionUID
serialVersionUID
|
private java.util.HashMap<ATDMStrategy,java.lang.String> |
strategies
Strategies contained in this ATDM plan
|
| Constructor and Description |
|---|
ATDMPlan(int id,
java.lang.String name)
Constructor of an empty ATDM plan
|
ATDMPlan(int id,
java.lang.String name,
ATDMPlan basePlan)
Creates a new ATDMPlan instance with all the strategies of the plan
specified in the constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addStrategy(java.lang.String strategyType,
ATDMStrategy newStrat) |
ATDMPlan |
clone() |
private void |
copyStrategies(ATDMPlan basePlan) |
java.util.HashMap<ATDMStrategy,java.lang.String> |
getAppliedStrategies() |
float[][] |
getATDMadjFactors() |
float |
getCapacityIncreaseDueToRM() |
ATDMPlan |
getDeepCopy()
Returns a deep copy of the ATDMPlan object.
|
java.lang.String |
getDescription() |
float[] |
getHSRCAF() |
float |
getHSRCAF(int numLanes) |
CA2DInt |
getHSRMatrix() |
int |
getID() |
int |
getIncidentDurationReduction() |
java.lang.String |
getInfo() |
java.lang.String |
getName() |
CA2DInt |
getRMRate() |
boolean |
hasRampMetering() |
boolean |
hasShoulderOpening() |
boolean |
hasStrategy(ATDMStrategy strategy) |
void |
removeStrategy(ATDMStrategy strat) |
void |
setDescription(java.lang.String newDescription) |
void |
setID(int newID) |
void |
setName(java.lang.String newName) |
void |
useRampMetering(boolean val) |
void |
useShoulderOpening(boolean val) |
private static final long serialVersionUID
private int id
private java.lang.String name
private java.lang.String description
private java.util.HashMap<ATDMStrategy,java.lang.String> strategies
private boolean hasRampMetering
private boolean hasShoulderOpening
public ATDMPlan(int id,
java.lang.String name)
id - ATDM plan IDname - ATDM plan namepublic ATDMPlan(int id,
java.lang.String name,
ATDMPlan basePlan)
id - ATDM plan IDname - ATDM plan namebasePlan - ATDM plan to be copied frompublic void addStrategy(java.lang.String strategyType,
ATDMStrategy newStrat)
strategyType - newStrat - public void removeStrategy(ATDMStrategy strat)
strat - private void copyStrategies(ATDMPlan basePlan)
public java.lang.String getName()
public java.lang.String getDescription()
public java.lang.String getInfo()
public int getID()
public java.util.HashMap<ATDMStrategy,java.lang.String> getAppliedStrategies()
public float[][] getATDMadjFactors()
public int getIncidentDurationReduction()
public CA2DInt getRMRate()
public CA2DInt getHSRMatrix()
public float[] getHSRCAF()
public float getHSRCAF(int numLanes)
numLanes - public float getCapacityIncreaseDueToRM()
public boolean hasStrategy(ATDMStrategy strategy)
strategy - public boolean hasRampMetering()
public boolean hasShoulderOpening()
public void setID(int newID)
newID - public void setName(java.lang.String newName)
newName - public void setDescription(java.lang.String newDescription)
newDescription - public void useRampMetering(boolean val)
val - public void useShoulderOpening(boolean val)
val - public ATDMPlan getDeepCopy()
public ATDMPlan clone() throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedException