TestSystem

portals.system.TestSystem
class TestSystem(seed: Option[Int]) extends PortalsSystem

Test system and runtime for Portals. This system is single-threaded, synchronous, and lets the user proceed the computation by taking steps over atoms. Alternatively, the computation can be carried out until the end by stepping until it has completed.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def canStep(): Boolean

Check if the system can take a step.

Check if the system can take a step.

Attributes

def launch(application: Application): Unit

Launch a Portals application.

Launch a Portals application.

Attributes

def shutdown(): Unit

Terminate the system and cleanup.

Terminate the system and cleanup.

Attributes

def step(): Unit

Take a step over an atom.

Take a step over an atom.

Attributes

def stepFor(millis: Long): Unit

Take steps for millis milliseconds and then stop.

Take steps for millis milliseconds and then stop.

Attributes

def stepUntilComplete(): Unit

Take steps until completion.

Take steps until completion.

Attributes

def stepUntilComplete(max: Int): Unit

Take steps until completion or until reaching the max number of steps.

Take steps until completion or until reaching the max number of steps.

Attributes