Object/Class

es.ucm.fdi.sscheck.gen

PStreamGen

Related Docs: class PStreamGen | package gen

Permalink

object PStreamGen

All the temporal generators defined in this object are sized generators, but the size parameters only affects the number of batches in the output PDStream, not the size of the batches. The size of the batches can be changed by using Gen.resize in the definition of the batch generator that is passed to these HO generators

On the other hand for generators of arbitrary PDStreams like Gen.resize(5, arbitrary[DStream[Int]]) Gen.resize has effect, both in the number of batches and in the size of the batches, as those arbitrary instances are based on arbitrary for lists

TODO That should be tested // by using Gen.resize(5, TLGen.always(Batch(List(0, 1)))) (constant batch size) // and then in Gen.resize(3, TLGen.always(BatchGen.ofNtoM(1, 5, Gen.choose(0, 3)))) // the point is that we always have 3 batches, but Gen.resize doesn't affect the batch // size but only the number of batches //

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PStreamGen
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def always[A](dsg: Gen[PStream[A]], t: Timeout): Gen[PStream[A]]

    Permalink
  5. def always[A](dsg: Gen[PStream[A]]): Gen[PStream[A]]

    Permalink

    Sized generator where the size acts like the timeout, so

    Sized generator where the size acts like the timeout, so

    • with size <= 0 returns the empty PDStream
    • otherwise dsg happens size times from now
  6. def apply[A](dsg: Gen[PStream[A]]): PStreamGen[A]

    Permalink
  7. implicit def arbDStream[A](implicit arbBatch: Arbitrary[Window[A]]): Arbitrary[PStream[A]]

    Permalink

    Arbitrary generator for DStream.

    Arbitrary generator for DStream. Only works if an Arbitrary for Batch is also present. Note this hasn't been automatically derived from Buildables.buildableDStreamFromBatch for the same reason Gen.buildableOf has to be used with DStream instead of Gen.containerOf

  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def dstreamUnion[A](gs1: Gen[PStream[A]], gs2: Gen[PStream[A]]): Gen[PStream[A]]

    Permalink

    returns

    a generator for the batch-by-batch concatenation of the PDStreams generated by gs1 and gs2. Note we fill either PDStreams with empty batches This implies PDStreams are implicitly treated as they where infinitely extended with empty batches

  11. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  13. def eventually[A](dsg: Gen[PStream[A]], t: Timeout): Gen[PStream[A]]

    Permalink
  14. def eventually[A](dsg: Gen[PStream[A]]): Gen[PStream[A]]

    Permalink

    Sized generator where the size acts like the timeout, so

    Sized generator where the size acts like the timeout, so

    • with size <= 0 returns the empty PDStream
    • otherwise dsg happens at some moment between 0 and size instants
  15. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  17. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. def laterN[A](n: Int, dsg: Gen[PStream[A]]): Gen[PStream[A]]

    Permalink

    returns

    a dstream generator that has n empty batches followed by the batches from dsg

  20. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  21. def next[A](dsg: Gen[PStream[A]]): Gen[PStream[A]]

    Permalink

    returns

    a dstream generator that has an empty batch followed by the batches from dsg

  22. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. def of[T](bg: ⇒ Gen[Window[T]]): Gen[PStream[T]]

    Permalink

    returns

    a generator of DStream that generates its batches from bg

  25. def ofN[T](n: Int, bg: Gen[Window[T]]): Gen[PStream[T]]

    Permalink

    returns

    a generator of DStream that generates its batches from bg

  26. def ofNtoM[T](n: Int, m: Int, bg: Gen[Window[T]]): Gen[PStream[T]]

    Permalink

    returns

    a generator of DStream that generates its batches from bg

  27. def release[A](dsg1: Gen[PStream[A]], dsg2: Gen[PStream[A]], t: Timeout): Gen[PStream[A]]

    Permalink
  28. def release[A](dsg1: Gen[PStream[A]], dsg2: Gen[PStream[A]]): Gen[PStream[A]]

    Permalink

    Generator for the weak version of LTL release operator: either dsg2 happens forever, or it happens until dsg1 happens, including the moment when dsg1 happens

    Generator for the weak version of LTL release operator: either dsg2 happens forever, or it happens until dsg1 happens, including the moment when dsg1 happens

    This is a sized generator where the size acts like the timeout, so

    • with size <= 0 returns the empty PDStream
    • otherwise, if dsg1 happens then it happens after between 0 and size-1 instants
  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  30. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  31. def until[A](dsg1: Gen[PStream[A]], dsg2: Gen[PStream[A]], t: Timeout): Gen[PStream[A]]

    Permalink
  32. def until[A](dsg1: Gen[PStream[A]], dsg2: Gen[PStream[A]]): Gen[PStream[A]]

    Permalink

    This is sized generator where the size acts like the timeout, so - with size <= 0 returns the empty PDStream, as no word can succeed with a timeout of 0 - with size 1 returns a PDStream generated by dsg2 - otherwise dsg2 happens after between 0 and size-1 instants

  33. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped