bdi4jade.examples.planselection

## Class TransportationPlan

- java.lang.Object
- - bdi4jade.core.MetadataElementImpl
  - - bdi4jade.plan.AbstractPlan
    - - bdi4jade.plan.DefaultPlan
      - - bdi4jade.examples.planselection.TransportationPlan

- All Implemented Interfaces:
    MetadataElement, Plan

      public class TransportationPlan
      extends DefaultPlan

  Author:
    ingrid

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from interface bdi4jade.plan.Plan

      `Plan.EndState`

  - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static double` | `MAX_TIME_TAKEN`

    - ### Fields inherited from class bdi4jade.plan.DefaultPlan

      `planBodyClass`

    - ### Fields inherited from class bdi4jade.core.MetadataElementImpl

      `metadata`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `TransportationPlan(java.lang.String id, double crashProbability, double beingRobbedProbability, boolean costConstant, double cost, double comfort, int minTime, int maxTime)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `double` | `getBeingRobbedProbability()`
    `double` | `getComfort()`
    `double` | `getCost()`
    `double` | `getCrashProbability()`
    `int` | `getMaxTime()`
    `int` | `getMinTime()`
    `boolean` | `isCostConstant()`

    - ### Methods inherited from class bdi4jade.plan.DefaultPlan

      `createPlanBody, getPlanBodyClass`

    - ### Methods inherited from class bdi4jade.plan.AbstractPlan

      `addGoalTemplate, addMessageTemplate, canAchieve, canProcess, equals, getGoalTemplates, getId, getMessageTemplates, getPlanLibrary, hashCode, initGoalTemplates, initMessageTemplates, isContextApplicable, setPlanLibrary, toString`

    - ### Methods inherited from class bdi4jade.core.MetadataElementImpl

      `getMetadata, getMetadata, hasMetadata, putMetadata, removeMetadata`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

    - ### Methods inherited from interface bdi4jade.core.MetadataElement

      `getMetadata, getMetadata, hasMetadata, putMetadata, removeMetadata`

- - ### Field Detail

    - #### MAX_TIME_TAKEN

          public static final double MAX_TIME_TAKEN

      See Also:
        Constant Field Values

  - ### Constructor Detail

    - #### TransportationPlan

          public TransportationPlan(java.lang.String id,
                                    double crashProbability,
                                    double beingRobbedProbability,
                                    boolean costConstant,
                                    double cost,
                                    double comfort,
                                    int minTime,
                                    int maxTime)

  - ### Method Detail

    - #### getBeingRobbedProbability

          public double getBeingRobbedProbability()

      Returns:
        the beingRobbedProbability

    - #### getComfort

          public double getComfort()

      Returns:
        the comfort

    - #### getCost

          public double getCost()

      Returns:
        the cost

    - #### getCrashProbability

          public double getCrashProbability()

      Returns:
        the crashProbability

    - #### getMaxTime

          public int getMaxTime()

      Returns:
        the maxTime

    - #### getMinTime

          public int getMinTime()

      Returns:
        the minTime

    - #### isCostConstant

          public boolean isCostConstant()

      Returns:
        the costConstant