MPIInstruction

data class MPIInstruction(action: MPIDirections.MPIAction?, instruction: String?, node: MPINavigatable.MPINode?, distance: Double?, atVortex: MPINavigatable.MPIVortex?)

This class represents a singular step or instruction of a MPIDirections

Constructors

MPIInstruction
Link copied to clipboard
fun MPIInstruction(action: MPIDirections.MPIAction? = null, instruction: String?, node: MPINavigatable.MPINode? = null, distance: Double?, atVortex: MPINavigatable.MPIVortex? = null)

Functions

component1
Link copied to clipboard
operator fun component1(): MPIDirections.MPIAction?
component2
Link copied to clipboard
operator fun component2(): String?
component3
Link copied to clipboard
operator fun component3(): MPINavigatable.MPINode?
component4
Link copied to clipboard
operator fun component4(): Double?
component5
Link copied to clipboard
operator fun component5(): MPINavigatable.MPIVortex?
copy
Link copied to clipboard
fun copy(action: MPIDirections.MPIAction? = null, instruction: String?, node: MPINavigatable.MPINode? = null, distance: Double?, atVortex: MPINavigatable.MPIVortex? = null): MPIDirections.MPIInstruction
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String

Properties

action
Link copied to clipboard
val action: MPIDirections.MPIAction? = null
An optional action being performed at a node
atVortex
Link copied to clipboard
var atVortex: MPINavigatable.MPIVortex? = null
distance
Link copied to clipboard
val distance: Double?
instruction
Link copied to clipboard
val instruction: String?
An optional string instruction to display to user
  • Example: "Take elevator up to Upper Level"

node
Link copied to clipboard
val node: MPINavigatable.MPINode? = null
An optional node where instruction takes place at