Class OppNodeProperties

java.lang.Object
casa.util.conf.ConfigurationProperties
casa.lepton.conf.OppNodeProperties

public class OppNodeProperties extends casa.util.conf.ConfigurationProperties
Properties used for the graph nodes: different nodes may have different properties.
  • Field Summary

    Fields inherited from class casa.util.conf.ConfigurationProperties

    keys, properties
  • Constructor Summary

    Constructors
    Constructor
    Description
    Initializes default properties from the given properties
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Give the Levy Alpha parameter
    double
    Give the Levy Beta parameter
    casa.util.geom.CoordCar
    Give the initial location of the node
    Give the geo-referenced graph along which the node walks
    Give the directory that contains the journeys file and the paths files
    Give the journeys file
    double
    Give the Levy K parameter
    Give the label of the node
    double
    Give the maximum distance of a flight (in m)
    double
     
    long
     
    double
    Give the minimum distance of a flight (in m)
    double
     
    long
     
    Give the default status of a node if no status is supplied when it is created
    Give the label of the node
    Give the nodes profiles and their characteristics
    Give a string representation of the pause type (???)
    Give the prefix for the node ids to conform of the current profile, if any.
    double
    Give the Levy Rho Levy parameter
    long
    Give the seed to initialize the random values generator.
    Give the connectivity type for which the node status is shown
    Give the connectivity types supported by the node
    Give the tag for the node
    protected Object
    getTypedValue(casa.util.conf.PropertyKey key)
     
    Give
    casa.util.geom.AreaCar
    Give the node simulation area
    boolean
    Return true if the node is mobile

    Methods inherited from class casa.util.conf.ConfigurationProperties

    addKeys, addProperties, addProperties, addProperties, addProperties, displayAllProperties, displayDefinedProperties, expandVariables, getAreaProperty, getBooleanProperty, getClassProperty, getColorProperty, getCoordProperty, getDoubleProperty, getFileProperty, getIntProperty, getKeys, getListProperty, getLongProperty, getMapProperty, getProperty, getReaderProperty, getSetProperty, getWriterProperty, hasProperty, makeReader, propertyToString, propertyToString, setProperty

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OppNodeProperties

      public OppNodeProperties(Properties properties)
      Initializes default properties from the given properties
      Parameters:
      properties - the default properties string values
  • Method Details

    • getTypedValue

      protected Object getTypedValue(casa.util.conf.PropertyKey key)
      Specified by:
      getTypedValue in class casa.util.conf.ConfigurationProperties
    • getNodeProfiles

      public OppNodeProfiles getNodeProfiles()
      Give the nodes profiles and their characteristics
      Returns:
      the nodes profiles and their characteristics
    • getPrefix

      public String getPrefix()
      Give the prefix for the node ids to conform of the current profile, if any.
      Returns:
      the node ids prefix
    • getSupportedConnectivityTypes

      public Set<String> getSupportedConnectivityTypes()
      Give the connectivity types supported by the node
      Returns:
      the connectivity types supported by the node
    • getNodeDefaultStatus

      public String getNodeDefaultStatus()
      Give the default status of a node if no status is supplied when it is created
      Returns:
      the node default status
    • getNodeLabels

      public NodeLabels getNodeLabels()
      Give the label of the node
      Returns:
      the label of the node
    • getLabel

      public String getLabel()
      Give the label of the node
      Returns:
      the label of the node
    • getTag

      public String getTag()
      Give the tag for the node
      Returns:
      the tag for the node
    • getShowNodeStatus

      public String getShowNodeStatus()
      Give the connectivity type for which the node status is shown
      Returns:
      the connectivity type for which the node status is shown
    • getWalk

      public Walk getWalk()
      Give
      Returns:
      the class used to define the mobility model of the node
    • getWalkArea

      public casa.util.geom.AreaCar getWalkArea()
      Give the node simulation area
      Returns:
      the node simulation area
    • isMobile

      public boolean isMobile()
      Return true if the node is mobile
      Returns:
      true if the node is mobile
    • getCoord

      public casa.util.geom.CoordCar getCoord()
      Give the initial location of the node
      Returns:
      the initial location of the node
    • getSeed

      public long getSeed()
      Give the seed to initialize the random values generator.
      Returns:
      the seed to initialize the random values generator
    • getMinSpeed

      public double getMinSpeed()
      Returns:
      the minimum speed of the node (in m/s)
    • getMaxSpeed

      public double getMaxSpeed()
      Returns:
      the maximum speed of the node (in m/s)
    • getMinWait

      public long getMinWait()
      Returns:
      the minimum wait duration of the node after each flight (in ms)
    • getMaxWait

      public long getMaxWait()
      Returns:
      the maximum wait duration of the node after each flight (in ms)
    • getMinDist

      public double getMinDist()
      Give the minimum distance of a flight (in m)
      Returns:
      the minimum distance of a flight (in m)
    • getMaxDist

      public double getMaxDist()
      Give the maximum distance of a flight (in m)
      Returns:
      the maximum distance of a flight (in m)
    • getAlpha

      public double getAlpha()
      Give the Levy Alpha parameter
      Returns:
      the Levy Alpha parameter
    • getBeta

      public double getBeta()
      Give the Levy Beta parameter
      Returns:
      the Levy Beta parameter
    • getK

      public double getK()
      Give the Levy K parameter
      Returns:
      the Levy K parameter
    • getRho

      public double getRho()
      Give the Levy Rho Levy parameter
      Returns:
      the Levy Rho Levy parameter
    • getPauseType

      public String getPauseType()
      Give a string representation of the pause type (???)
      Returns:
      string representation of the pause type (???)
    • getGraph

      public File getGraph()
      Give the geo-referenced graph along which the node walks
      Returns:
      geo-referenced graph along which the node walks
    • getJourneysDirectory

      public File getJourneysDirectory()
      Give the directory that contains the journeys file and the paths files
      Returns:
      the directory that contains the journeys file and the paths files
    • getJourneysFilename

      public String getJourneysFilename()
      Give the journeys file
      Returns:
      the journeys file