Class OutputAdapter


  • public class OutputAdapter
    extends Object
    Output Adapter which stores output type adapters for each Output Manager and defines top-level method which apply to all output types
    Author:
    gman6028
    • Constructor Detail

      • OutputAdapter

        public OutputAdapter​(TrafficAssignment trafficAssignment)
        Constructor
        Parameters:
        trafficAssignment - TrafficAssignment object which this adapter wraps
    • Method Detail

      • getClassName

        protected String getClassName​(Object object)
        Return the name of a Java object class as a short string
        Parameters:
        object - the Java object
        Returns:
        the name of the object
      • getRunId

        public long getRunId()
        Return the id of this assignment run
        Returns:
        id of this assignment run
      • getAssignmentClassName

        public String getAssignmentClassName()
        Returns the name of the assignment class being used
        Returns:
        the assignment class being used
      • getPhysicalCostClassName

        public String getPhysicalCostClassName()
        Returns the name of the physical cost class
        Returns:
        the name of the physical cost class
      • getVirtualCostClassName

        public String getVirtualCostClassName()
        Return the name of the virtual cost class
        Returns:
        the name of the virtual cost class
      • getSmoothingClassName

        public String getSmoothingClassName()
        Return the name of the smoothing class
        Returns:
        the name of the smoothing class
      • getGapFunctionClassName

        public String getGapFunctionClassName()
        Return the name of the gap function class
        Returns:
        the name of the gap function class
      • getStopCriterionClassName

        public String getStopCriterionClassName()
        Return the name of the stopping criterion class
        Returns:
        the name of the stopping criterion class
      • registerOutputTypeAdapter

        public void registerOutputTypeAdapter​(OutputType outputType,
                                              OutputTypeAdapter outputTypeAdapter)
        Store an output type adapters for a specified output type
        Parameters:
        outputType - the specified output type
        outputTypeAdapter - the output type adapter to be stored
      • deregisterOutputTypeAdapter

        public void deregisterOutputTypeAdapter​(OutputType outputType)
        Deregister an output type adapter for a specified output type
        Parameters:
        outputType - the output type whose adapter is to be deregistered
      • getOutputTypeAdapter

        public OutputTypeAdapter getOutputTypeAdapter​(OutputType outputType)
        Retrieve an output type adapter for a specified output type
        Parameters:
        outputType - the specified output type
        Returns:
        the output type adapter for the specified output type
      • reset

        public void reset()
        remove all registered output type adapters