o

org.nlogo.fileformat

NLogoLabConverter

object NLogoLabConverter extends AutoConvertable

Source
NLogoLabConverter.scala
Linear Supertypes
AutoConvertable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. NLogoLabConverter
  2. AutoConvertable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. def autoConvert(model: Model, converter: AutoConverter): Either[(Model, Seq[Exception]), Model]

    Converts the component and returns the updated model

    Converts the component and returns the updated model

    Returns an either which encapsulates the result of the conversion process. A left indicates that something went wrong and includes both the model, assumed to have undergone a best-effort conversion, and exceptions indicating failures encountered in conversion.

    For instance, if a widget errors during conversion, the widget converter converts and returns a Left containing the model with the other widgets converted and the erroring widget unconverted, as well as the exceptions when converting the widgets

    returns

    Either a partially-converted model and exceptions, or a fully-converted model

    Definition Classes
    NLogoLabConverterAutoConvertable
  2. def autoConvertProtocol(converter: AutoConverter)(protocol: LabProtocol): LabProtocol
  3. def componentDescription: String
    Definition Classes
    NLogoLabConverterAutoConvertable
  4. def componentName: String
  5. def conversionSource(m: Model, literalParser: LiteralParser): Option[(String, String)]
    Definition Classes
    AutoConvertable
  6. def needingConversion(needsConversion: (String) ⇒ Boolean, protocol: LabProtocol): Boolean
  7. def requiresAutoConversion(model: Model, needsConversion: (String) ⇒ Boolean): Boolean
    Definition Classes
    NLogoLabConverterAutoConvertable