Packages

class SimpleSession[W, ID] extends AnyRef

A simple session to post stuff, call responses and if these responses generate posts, recursively call itself for them.

Linear Supertypes
AnyRef, Any
Known Subclasses
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SimpleSession
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new SimpleSession(web: W, responses: Vector[PostResponse[W, ID]], logs: Vector[(PostData[_, W, ID]) => Future[Unit]], completionResponse: Option[(W) => Future[PostData[_, W, ID]]])

    web

    the web where the posts are stored

    responses

    the bots responding to posts

    logs

    side-effect responses

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from SimpleSession[W, ID] toany2stringadd[SimpleSession[W, ID]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (SimpleSession[W, ID], B)
    Implicit
    This member is added by an implicit conversion from SimpleSession[W, ID] toArrowAssoc[SimpleSession[W, ID]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  8. val completedResponses: ArrayBuffer[(ID, PostResponse[W, ID])]
  9. val completionResponse: Option[(W) => Future[PostData[_, W, ID]]]
  10. def ensuring(cond: (SimpleSession[W, ID]) => Boolean, msg: => Any): SimpleSession[W, ID]
    Implicit
    This member is added by an implicit conversion from SimpleSession[W, ID] toEnsuring[SimpleSession[W, ID]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: (SimpleSession[W, ID]) => Boolean): SimpleSession[W, ID]
    Implicit
    This member is added by an implicit conversion from SimpleSession[W, ID] toEnsuring[SimpleSession[W, ID]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: Boolean, msg: => Any): SimpleSession[W, ID]
    Implicit
    This member is added by an implicit conversion from SimpleSession[W, ID] toEnsuring[SimpleSession[W, ID]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean): SimpleSession[W, ID]
    Implicit
    This member is added by an implicit conversion from SimpleSession[W, ID] toEnsuring[SimpleSession[W, ID]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  16. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from SimpleSession[W, ID] toStringFormat[SimpleSession[W, ID]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  17. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  23. def post[P](content: P, preds: Set[ID], withResponse: Boolean = true)(implicit pw: Postable[P, W, ID], dg: DataGetter[P, W, ID]): Future[PostData[_, W, ID]]

    recursively posting and running (as side-effects) offspring tasks, this posts the head but bots will be called with a different method that does not post the head, to avoid duplication

    recursively posting and running (as side-effects) offspring tasks, this posts the head but bots will be called with a different method that does not post the head, to avoid duplication

    content

    the post content

    preds

    the predecessor posts

    pw

    postability

    returns

    the data of the post as a future

  24. def query[Q](predicate: (Q) => Boolean = (_: Q) => true)(implicit q: Queryable[Q, W]): Future[Q]

    a query from the web

    a query from the web

    predicate

    condition to be satisfied

    q

    queribility

    returns

    response to query as a future

  25. def queryAt[Q](id: ID, predicate: (Q) => Boolean = (_: Q) => true)(implicit q: LocalQueryable[Q, W, ID]): Future[Vector[Q]]

    a query from the web at a position

    a query from the web at a position

    id

    the postion

    predicate

    condition to be satisfied

    q

    queribility

    returns

    response to query as a future

  26. def remainingResponses: Vector[(ID, PostResponse[W, ID])]
  27. def respond[P](content: P, postID: ID)(implicit pw: Postable[P, W, ID]): Unit

    the recursive step for posting, the given content is not posted, only the responses are.

    the recursive step for posting, the given content is not posted, only the responses are.

    content

    the head content, not post

    postID

    the ID of the head, to be used as predecessor for the other posts

    pw

    postability

  28. def respondSeq(pds: Vector[PostData[_, W, ID]]): Unit
  29. var responses: Vector[PostResponse[W, ID]]
  30. def running: Boolean
  31. val startedResponses: ArrayBuffer[(ID, PostResponse[W, ID])]
  32. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  33. def toString(): String
    Definition Classes
    AnyRef → Any
  34. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  35. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  36. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  37. val web: W

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated
  2. def [B](y: B): (SimpleSession[W, ID], B)
    Implicit
    This member is added by an implicit conversion from SimpleSession[W, ID] toArrowAssoc[SimpleSession[W, ID]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd fromSimpleSession[W, ID] to any2stringadd[SimpleSession[W, ID]]

Inherited by implicit conversion StringFormat fromSimpleSession[W, ID] to StringFormat[SimpleSession[W, ID]]

Inherited by implicit conversion Ensuring fromSimpleSession[W, ID] to Ensuring[SimpleSession[W, ID]]

Inherited by implicit conversion ArrowAssoc fromSimpleSession[W, ID] to ArrowAssoc[SimpleSession[W, ID]]

Ungrouped