KotlinTrader / com.doubleu.kotlintrader.model / Ort

Ort

class Ort : Entity<Ort>

Types

Model class Model : ItemViewModel<Ort?>

Constructors

<init> Ort(id: Long)

Properties

id val id: Long
kapazitaet var kapazitaet: Double
kapazitaetProperty val kapazitaetProperty: Property<Double>
name var name: String
nameProperty val nameProperty: Property<String>
x var x: Int
xProperty val xProperty: Property<Int>
y var y: Int
yProperty val yProperty: Property<Int>

Inherited Properties

delegateMap val delegateMap: MutableMap<KProperty<*>, DatabaseDelegate<*>>
idProperty val idProperty: LongProperty

Functions

distanceTo fun distanceTo(other: Ort): Double

Calculates the distance between this and the other

model fun model(property: ObjectProperty<Ort?>): Model

Returns an ItemViewModel containing the given Entity

toString fun toString(): String

Overridden for meaningful representation inside the combobox of the TradeView

Inherited Functions

default fun <V> default(property: KProperty<V>): V

Retrieves the default value for the given property

delegate fun <V : Any> delegate(property: KProperty<V>, default: V): PropertyDelegate<T, V>

Returns a Delegate to the given property.

mutableReference fun <E : Entity<E>> mutableReference(key: KMutableProperty0<E>, property: KMutableProperty0<Long>): MutableReferenceDelegate<E>

Returns a Delegate to the given property.

property fun <V> property(property: KProperty<V>): Property<V>

Returns the FXProperty associated with the passed Entity-Property

reference fun <E : Entity<E>> reference(key: KProperty<E>, property: KProperty<Long>): ReferenceDelegate<E>

Returns a Delegate to the given property.

reset fun reset(): Unit

Resets this entity back to it's default values

retrieve fun retrieve(lazy: Boolean): Unit

Reloads the Entity from the database

Extension Functions

valueOf fun Any?.valueOf(): String