trait MantikItem extends AnyRef
A single Item inside the Planner API. Can represent data or algorithms. Can be serialized to JSON.
- Alphabetic
- By Inheritance
- MantikItem
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- abstract type DefinitionType <: MantikDefinition
- abstract type OwnType <: MantikItem
Abstract Value Members
- abstract def withCore(updated: MantikItemCore[DefinitionType]): OwnType
Override the current source type.
Override the current source type.
- Attributes
- protected
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def isCached: Boolean
Return true if the item is requested for caching (This doesn't have to mean that the cache is evaluated)
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def itemId: ItemId
Returns the ai.mantik.elements.ItemId of the item.
- def mantikId: MantikId
Returns the mantik id.
Returns the mantik id. (Note: if it was stored after generating, it may not reflect the name)
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def push(): PushAction
Pushes an item to the registry.
- def save(): SaveAction
Save an item back in the local database
- def state(implicit planningContext: PlanningContext): MantikItemState
Returns the state of the item.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def tag(name: NamedMantikId): OwnType
Tag the item, giving it an additional name.
Tag the item, giving it an additional name.
Note: this will only have an effect, if the Item is saved or pushed.
- returns
the tagged item.
- def toString(): String
- Definition Classes
- MantikItem → AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def withMantikHeader(mantikHeader: MantikHeader[DefinitionType]): OwnType
Override the mantik header (not this can be dangerous).
Override the mantik header (not this can be dangerous).
- Attributes
- protected
- def withMetaValue[T](name: String, value: T)(implicit arg0: ValueEncoder[T]): OwnType
Convenience function to udpate a single meta value.
Convenience function to udpate a single meta value. Types are matched automatically if possible
- Annotations
- @throws("If a value is missing or of wrong type or not changeable.")
- def withMetaValues(values: (String, SingleElementBundle)*): OwnType
Update Meta Variables.
Update Meta Variables.
- Annotations
- @throws("If a value is missing or of wrong type or not changeable.")