• MARS Website
  • Core API
  • SmartOpenHamburg API
  • Model Components API
  • Common API
Show / Hide Table of Contents
  • SOHBicycleModel.Common
    • BicycleConstants
    • BicycleType
    • DriverType
    • HandleBicycleType
    • HandleDriverType
  • SOHBicycleModel.Model
    • Bicycle
  • SOHBicycleModel.Parking
    • BicycleParkingLayer
    • BicycleParkingLot
    • IBicycleParkingLayer
  • SOHBicycleModel.Rental
    • BicycleRentalLayer
    • BicycleRentalStation
    • IBicycleRentalLayer
    • IBicycleSteeringAndRentalCapable
    • IRentalBicycle
    • RentalBicycle
  • SOHBicycleModel.Steering
    • BicyclePassengerHandle
    • BicycleSteeringHandle
    • IBicycleSteeringCapable
    • WiedemannAccelerator
    • WiedemannAccelerator.WiedemannAcceleratorParameters
  • SOHCarModel.Common
    • CarRouteFinder
  • SOHCarModel.Model
    • Car
    • CarDriver
    • CarLayer
    • Golf
    • ICarLayer
    • RentalCar
  • SOHCarModel.Parking
    • CarParkingLayer
    • CarParkingSpace
    • ICarParkingLayer
    • IParkingCar
  • SOHCarModel.Rental
    • CarRentalLayer
    • ICarRentalCapable
    • ICarRentalLayer
  • SOHCarModel.Steering
    • CarPassengerHandle
    • CarSteeringHandle
    • ICarSteeringCapable
  • SOHDomain.Common
    • HumanVelocityConstants
    • NormalDist
    • OsmFeatureCodes
    • OsmGroups
    • VehicleConstants
  • SOHDomain.Graph
    • ISpatialGraphLayer
    • SidewalkLayer
    • SpatialGraphMediatorLayer
    • StreetLayer
  • SOHDomain.Model
    • IModalLayer
    • IVehicleEntrance<TDriver, TPassenger, TSteeringHandle, TPassengerHandle>
    • RoadUser
    • Vehicle<TSteeringCapable, TPassengerCapable, TSteeringHandle, TPassengerHandle>
    • WalkingShoes
  • SOHDomain.Steering.Acceleration
    • IntelligentDriverAccelerator
    • IVehicleAccelerator
    • WalkingAccelerator
  • SOHDomain.Steering.Capables
    • IPassengerCapable
    • ISteeringCapable
    • IWalkingCapable
  • SOHDomain.Steering.Common
    • PassengerMessage
  • SOHDomain.Steering.Handles
    • IdlePassengerSteeringHandle
    • IPassengerHandle
    • ISteeringHandle
    • VehiclePassengerHandle<TSteeringCapable, TPassengerCapable, TSteeringHandle, TPassengerHandle>
    • VehicleSteeringHandle<TSteeringCapable, TPassengerCapable, TSteeringHandle, TPassengerHandle>
    • WalkingSteeringHandle
  • SOHDomain.Steering.Handles.Intersection
    • AbstractIntersectionHandle<TSteeringCapable, TPassengerCapable, TSteeringHandle, TPassengerHandle>
    • FifoIntersectionHandle<TSteeringCapable, TPassengerCapable, TSteeringHandle, TPassengerHandle>
    • IIntersectionTrafficCode
    • RightBeforeLeftIntersectionHandle<TSteeringCapable, TPassengerCapable, TSteeringHandle, TPassengerHandle>
  • SOHFerryModel.Model
    • Ferry
    • FerryDriver
    • FerryLayer
    • FerrySchedulerLayer
  • SOHFerryModel.Route
    • FerryRoute
    • FerryRoute.FerryRouteEnumerator
    • FerryRouteEntry
    • FerryRouteLayer
    • FerryRouteReader
  • SOHFerryModel.Station
    • FerryStation
    • FerryStationLayer
    • IFerryStationLayer
  • SOHFerryModel.Steering
    • FerryPassengerHandle
    • FerrySteeringHandle
    • IFerryPassenger
    • IFerrySteeringCapable
  • SOHMultimodalModel.Commons
    • PedestrianAverageSpeedGenerator
    • PointOfInterest
  • SOHMultimodalModel.Layers
    • MediatorLayer
    • VectorBuildingsLayer
    • VectorLanduseLayer
    • VectorPoiLayer
    • VectorServiceLayer
  • SOHMultimodalModel.Layers.TrafficLight
    • TrafficLight
    • TrafficLightController
    • TrafficLightLayer
  • SOHMultimodalModel.Model
    • Citizen
    • CitizenLayer
    • CitizenSchedulerLayer
    • CycleTraveler
    • CycleTravelerLayer
    • CycleTravelerSchedulerLayer
    • DockWorker
    • DockWorkerLayer
    • DockWorkerSchedulerLayer
    • GenderType
    • HumanTraveler
    • HumanTravelerLayer
    • ModalityChooser
    • MultiCapableAgent<TLayer>
    • PassengerTraveler
    • PassengerTravelerLayer
    • Traveler<TLayer>
    • TravelerConstants
    • WorkingType
  • SOHMultimodalModel.Multimodal
    • AbstractMultimodalLayer
    • IMultimodalLayer
    • IMultimodalRouteFinder
    • MultimodalAgent<TLayer>
    • Whereabouts
  • SOHMultimodalModel.Output.Route
    • MultimodalRouteOutputAdapter
  • SOHMultimodalModel.Output.Ticks
    • ITickOutputAgent
    • TickOutputAdapter
  • SOHMultimodalModel.Output.Trips
    • ITripSavingAgent
    • TripPositionCoordinateConverter
    • TripsLine
    • TripsLineConverter
    • TripsOutputAdapter
  • SOHMultimodalModel.Planning
    • DayPlanGenerator
    • Tour
    • Trip
    • TripReason
  • SOHMultimodalModel.Routing
    • GatewayLayer
    • GatewayPoint
    • MultimodalRouteCommons
    • MultimodalRouteFinder
    • WalkingCarDrivingRentalMultimodalRoute
    • WalkingDrivingMultimodalRoute
    • WalkingFerryDrivingMultimodalRoute
    • WalkingMultimodalRoute
    • WalkingTrainDrivingMultimodalRoute
  • SOHMultimodalModel.Steering
    • IWalkingRoadUser

Class BicycleRentalStation

The
BicycleRentalStation
is located somewhere and can hold
IRentalBicycle
s for rental.
Inheritance
System.Object
BicycleRentalStation
Implements
IVectorFeature
IQueryFieldProvider
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: SOHBicycleModel.Rental
Assembly: SOHBicycleModel.dll
Syntax
public class BicycleRentalStation : IVectorFeature, IQueryFieldProvider

Fields

| Improve this Doc View Source

StandardAmount

The
BicycleRentalStation
is located somewhere and can hold
IRentalBicycle
s for rental.
Declaration
public const int StandardAmount = 10
Field Value
Type Description
System.Int32

Properties

| Improve this Doc View Source

Count

Provides the amount of currently available bicycles at this station.
Declaration
public int Count { get; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

Empty

Indicates that there are no available bicycles at this rental station.
Declaration
public bool Empty { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Name

The name of this (location of) rental station.
Declaration
public string Name { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Position

The centroid of this rental station.
Declaration
public Position Position { get; }
Property Value
Type Description
Position
| Improve this Doc View Source

VectorStructured

The
BicycleRentalStation
is located somewhere and can hold
IRentalBicycle
s for rental.
Declaration
public VectorStructuredData VectorStructured { get; set; }
Property Value
Type Description
VectorStructuredData

Methods

| Improve this Doc View Source

Enter(IRentalBicycle)

Enter the parking spot with a bicycle and "consume" its required space.
Declaration
public bool Enter(IRentalBicycle bicycle)
Parameters
Type Name Description
IRentalBicycle bicycle The bicycle that is parked in this spot.
Returns
Type Description
System.Boolean True if a parking spot could be found, false otherwise (Beware: the bicycle is not parked here).
| Improve this Doc View Source

GetValue(String)

The
BicycleRentalStation
is located somewhere and can hold
IRentalBicycle
s for rental.
Declaration
public object GetValue(string field)
Parameters
Type Name Description
System.String field
Returns
Type Description
System.Object
| Improve this Doc View Source

Init(ILayer, VectorStructuredData)

The
BicycleRentalStation
is located somewhere and can hold
IRentalBicycle
s for rental.
Declaration
public void Init(ILayer layer, VectorStructuredData data)
Parameters
Type Name Description
ILayer layer
VectorStructuredData data
| Improve this Doc View Source

Leave(IRentalBicycle)

Leave the parking spot with given bicycle.
Declaration
public bool Leave(IRentalBicycle bicycle)
Parameters
Type Name Description
IRentalBicycle bicycle The bicycle that leaves this spot.
Returns
Type Description
System.Boolean True if bicycle is not on this parking space any more.
| Improve this Doc View Source

RentAny()

Rents any available IRentalBicycle in this rental station.
Declaration
public IRentalBicycle RentAny()
Returns
Type Description
IRentalBicycle The rented bicycle, null if none is available.
| Improve this Doc View Source

Synchronize()

Synchronizes all stored updates values with the current status.
Declaration
public void Synchronize()
Exceptions
Type Condition
System.NotImplementedException
| Improve this Doc View Source

Update(VectorStructuredData)

Initializes the
BicycleRentalStation
with the feature information.
Declaration
public void Update(VectorStructuredData data)
Parameters
Type Name Description
VectorStructuredData data

Implements

IVectorFeature
IQueryFieldProvider
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © MARS GROUP. HAW Hamburg