Van

"Van" class with various vehicle attributes to Test annotationControl

  • extraction from code (via reflection),

  • put and get of control values

Constructors

Link copied to clipboard
constructor(parent: ModelElement)

Properties

Link copied to clipboard
@set:KSLControl(controlType = ControlType.BOOLEAN)
var isStickShift: Boolean
Link copied to clipboard
@set:KSLControl(controlType = ControlType.INTEGER, name = "numberOfSeats", lowerBound = 1.0, upperBound = 18.0, comment = "0 seats == autonomous driving ?")
var numSeats: Int
Link copied to clipboard
@set:KSLControl(controlType = ControlType.SHORT, lowerBound = 3.0, upperBound = 8.0)
var numWheels: Short
Link copied to clipboard
@set:KSLControl(controlType = ControlType.DOUBLE)
var price: Double