Packages

class InMemoryDB extends DBAbstraction

In-memory database, e.g., for stepping into tactics.

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

Instance Constructors

  1. new InMemoryDB()

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addAgendaItem(proofId: Int, initialProofNode: ProofTreeNodeId, displayName: String): Int
    Definition Classes
    InMemoryDBDBAbstraction
  5. def addAlternative(alternativeTo: Int, inputProvable: ProvableSig, trace: ExecutionTrace): Unit

    Truncate the execution trace at the beginning of alternativeTo and replace it with trace.

    Truncate the execution trace at the beginning of alternativeTo and replace it with trace.

    Definition Classes
    InMemoryDBDBAbstraction
  6. def addBelleExpr(expr: BelleExpr): Int

    Adds a Bellerophon expression as an executable and returns the new executableId

    Adds a Bellerophon expression as an executable and returns the new executableId

    Definition Classes
    InMemoryDBDBAbstraction
  7. def addExecutionStep(step: ExecutionStepPOJO): Int

    Adds an execution step to an existing execution

    Adds an execution step to an existing execution

    Definition Classes
    InMemoryDBDBAbstraction
    Note

    Implementations should enforce additional invarants -- never insert when branches or alt orderings overlap.

  8. def addModelTactic(modelId: String, fileContents: String): Option[Int]

    Adds a tactic script to the model

    Adds a tactic script to the model

    Definition Classes
    InMemoryDBDBAbstraction
  9. def agendaItemsForProof(proofId: Int): List[AgendaItemPOJO]
    Definition Classes
    InMemoryDBDBAbstraction
  10. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  11. def checkPassword(username: String, password: String): Boolean
    Definition Classes
    InMemoryDBDBAbstraction
  12. def cleanup(): Unit

    Initializes a new database.

    Initializes a new database.

    Definition Classes
    InMemoryDBDBAbstraction
  13. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  14. def createModel(userId: String, name: String, fileContents: String, date: String, description: Option[String] = None, publink: Option[String] = None, title: Option[String] = None, tactic: Option[String] = None): Option[Int]

    Creates a new model in the database if name does not exist yet.

    Creates a new model in the database if name does not exist yet. Returns the ID of the created model. Otherwise (if the model name is used already) returns None and the database is unmodified.

    Definition Classes
    InMemoryDBDBAbstraction
  15. def createProof(provable: ProvableSig): Int

    Create a temporary proof without model, starting from 'provable'.

    Create a temporary proof without model, starting from 'provable'.

    Definition Classes
    InMemoryDBDBAbstraction
  16. def createProofForModel(modelId: Int, name: String, description: String, date: String, tactic: Option[String]): Int
    Definition Classes
    InMemoryDBDBAbstraction
  17. def createProofForModel(modelId: String, name: String, description: String, date: String, tactic: Option[String]): String
    Definition Classes
    DBAbstraction
  18. def createProvable(p: ProvableSig): Int

    Stores a Provable in the database and returns its ID

    Stores a Provable in the database and returns its ID

    Definition Classes
    InMemoryDBDBAbstraction
  19. def createUser(username: String, password: String, mode: String): Unit

    Creates a new user, identified by the unique username with password.

    Creates a new user, identified by the unique username with password. The user belongs to group group.

    Definition Classes
    InMemoryDBDBAbstraction
  20. def deleteExecutionStep(proofId: Int, stepId: Int): Unit

    Deletes execution steps.

    Deletes execution steps.

    Definition Classes
    InMemoryDBDBAbstraction
  21. def deleteModel(modelId: Int): Boolean

    Deletes this model and all associated proofs.

    Deletes this model and all associated proofs.

    Definition Classes
    InMemoryDBDBAbstraction
  22. def deleteProof(proofId: Int): Boolean

    Deletes the proof.

    Deletes the proof.

    Definition Classes
    InMemoryDBDBAbstraction
  23. def deleteProofSteps(executionId: Int): Int

    Deletes the recorded proof steps, but keeps the proof and its tactic.

    Deletes the recorded proof steps, but keeps the proof and its tactic. Returns the number of deleted steps.

    Definition Classes
    InMemoryDBDBAbstraction
  24. def deleteProvable(provableId: Int): Boolean

    Deletes a provable and all associated sequents / formulas

    Deletes a provable and all associated sequents / formulas

    Definition Classes
    InMemoryDBDBAbstraction
  25. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  27. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  28. def getAgendaItem(proofId: Int, initialProofNode: ProofTreeNodeId): Option[AgendaItemPOJO]
    Definition Classes
    InMemoryDBDBAbstraction
  29. def getAllConfigurations: Set[ConfigurationPOJO]
    Definition Classes
    InMemoryDBDBAbstraction
  30. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  31. def getConfiguration(configName: String): ConfigurationPOJO
    Definition Classes
    InMemoryDBDBAbstraction
  32. def getExecutable(executableId: Int): ExecutablePOJO

    Returns the executable with ID executableId

    Returns the executable with ID executableId

    Definition Classes
    InMemoryDBDBAbstraction
  33. def getExecutables(executableIds: List[Int]): List[ExecutablePOJO]

    Allow retrieving executables in bulk to reduce the number of database queries.

  34. def getExecutionStep(proofId: Int, stepId: Int): Option[ExecutionStep]

    Returns the execution step with id stepId of proof proofId with all provables etc.

    Returns the execution step with id stepId of proof proofId with all provables etc. filled in.

    Definition Classes
    InMemoryDBDBAbstraction
  35. def getExecutionSteps(executionId: Int): List[ExecutionStepPOJO]

    Return a list of all finished execution steps in the current history of the execution, in the order in which they occurred.

    Return a list of all finished execution steps in the current history of the execution, in the order in which they occurred.

    Definition Classes
    InMemoryDBDBAbstraction
    Note

    For most purposes, getExecutionTrace is more convenient, but slower.

  36. def getExecutionTrace(proofId: Int, withProvables: Boolean = true): ExecutionTrace

    Return the sequence of steps that led to the current state of the proof.

    Return the sequence of steps that led to the current state of the proof. Loading a trace with provables is slow.

    Definition Classes
    InMemoryDBDBAbstraction
  37. def getFirstExecutionStep(proofId: Int): Option[ExecutionStepPOJO]

    Returns the first step of the proof

    Returns the first step of the proof

    Definition Classes
    InMemoryDBDBAbstraction
  38. def getInvariants(modelId: Int): Map[Expression, Formula]
    Definition Classes
    InMemoryDBDBAbstraction
  39. def getModel(modelId: Int): ModelPOJO
    Definition Classes
    InMemoryDBDBAbstraction
  40. def getModel(modelId: String): ModelPOJO
    Definition Classes
    DBAbstraction
  41. def getModelList(userId: String): List[ModelPOJO]
    Definition Classes
    InMemoryDBDBAbstraction
  42. def getPlainExecutionStep(executionId: Int, stepId: Int): Option[ExecutionStepPOJO]

    Returns the execution step with id stepId of proof proofId in plain database form.

    Returns the execution step with id stepId of proof proofId in plain database form.

    Definition Classes
    InMemoryDBDBAbstraction
  43. def getPlainOpenSteps(proofId: Int): List[(ExecutionStepPOJO, List[Int])]

    Returns a list of steps that do not have successors for each of their subgoals.

    Returns a list of steps that do not have successors for each of their subgoals.

    Definition Classes
    InMemoryDBDBAbstraction
  44. def getPlainStepSuccessors(proofId: Int, prevStepId: Int, branchOrder: Int): List[ExecutionStepPOJO]

    Returns the successors of the execution step with id stepId of proof proofId in plain database form.

    Returns the successors of the execution step with id stepId of proof proofId in plain database form.

    Definition Classes
    InMemoryDBDBAbstraction
  45. def getProofInfo(proofId: Int): ProofPOJO
    Definition Classes
    InMemoryDBDBAbstraction
  46. def getProofInfo(proofId: String): ProofPOJO
    Definition Classes
    DBAbstraction
  47. def getProofsForModel(modelId: Int): List[ProofPOJO]
    Definition Classes
    InMemoryDBDBAbstraction
  48. def getProofsForModel(modelId: String): List[ProofPOJO]
    Definition Classes
    DBAbstraction
  49. def getProofsForUser(userId: String): List[(ProofPOJO, String)]
    Definition Classes
    InMemoryDBDBAbstraction
  50. def getProvable(lemmaId: Int): ProvablePOJO

    Use escape hatch in prover core to create a new Provable

    Use escape hatch in prover core to create a new Provable

    Definition Classes
    InMemoryDBDBAbstraction
  51. def getStepProvable(executionId: Int, stepId: Option[Int], subgoal: Option[Int]): Option[ProvableSig]

    Returns the subgoal of execution step stepId of proof proofId; proof conclusion if both None.

    Returns the subgoal of execution step stepId of proof proofId; proof conclusion if both None.

    Definition Classes
    InMemoryDBDBAbstraction
  52. def getTempUsers: List[UserPOJO]

    Returns all temporary users (group 3).

    Returns all temporary users (group 3).

    Definition Classes
    InMemoryDBDBAbstraction
  53. def getUniqueModelName(userId: String, modelName: String): String

    Returns a unique model name by appending an index, if modelName already exists.

    Returns a unique model name by appending an index, if modelName already exists.

    Definition Classes
    InMemoryDBDBAbstraction
  54. def getUser(username: String): Option[UserPOJO]

    Returns the user identified by username, if any.

    Returns the user identified by username, if any.

    Definition Classes
    InMemoryDBDBAbstraction
  55. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  56. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  57. def isProofClosed(proofId: Int): Boolean
    Definition Classes
    InMemoryDBDBAbstraction
  58. def loadProvables(lemmaIds: List[Int]): List[ProvablePOJO]
  59. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  60. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  61. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  62. def openProofs(userId: String): List[ProofPOJO]
    Definition Classes
    DBAbstraction
  63. def printStats(): Unit
  64. def proofExists(proofId: Int): Boolean
    Definition Classes
    InMemoryDBDBAbstraction
  65. def proofSteps(executionId: Int): List[ExecutionStepPOJO]
  66. def syncDatabase(): Unit

    Ensures any changes which might currently reside in auxilliary storage have been synced to main storage.

    Ensures any changes which might currently reside in auxilliary storage have been synced to main storage.

    Definition Classes
    InMemoryDBDBAbstraction
  67. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  68. def toString(): String
    Definition Classes
    AnyRef → Any
  69. def updateAgendaItem(item: AgendaItemPOJO): Unit
    Definition Classes
    InMemoryDBDBAbstraction
  70. def updateConfiguration(config: ConfigurationPOJO): Unit
    Definition Classes
    InMemoryDBDBAbstraction
  71. def updateExecutionStep(executionStepId: Int, step: ExecutionStepPOJO): Unit

    Updates an executable step

    Updates an executable step

    Definition Classes
    InMemoryDBDBAbstraction
  72. def updateModel(modelId: Int, name: String, title: Option[String], description: Option[String], content: Option[String], tactic: Option[String]): Unit
    Definition Classes
    InMemoryDBDBAbstraction
  73. def updateProofInfo(proof: ProofPOJO): Unit
    Definition Classes
    InMemoryDBDBAbstraction
  74. def updateProofName(proofId: String, name: String): Unit
    Definition Classes
    DBAbstraction
  75. def updateProofName(proofId: Int, name: String): Unit
    Definition Classes
    DBAbstraction
  76. def userExists(username: String): Boolean
    Definition Classes
    InMemoryDBDBAbstraction
  77. def userOwnsProof(userId: String, proofId: String): Boolean

    Indicates whether or not the user userId owns the proof proofId.

    Indicates whether or not the user userId owns the proof proofId.

    Definition Classes
    InMemoryDBDBAbstraction
  78. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  79. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  80. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from DBAbstraction

Inherited from AnyRef

Inherited from Any

Ungrouped