All Downloads are FREE. Search and download functionalities are using the official Maven repository.

it.unibo.scafi.simulation.frontend.Simulation.scala Maven / Gradle / Ivy

/*
 * Copyright (C) 2016-2019, Roberto Casadei, Mirko Viroli, and contributors.
 * See the LICENSE file distributed with this work for additional information regarding copyright ownership.
*/

package it.unibo.scafi.simulation.frontend

import it.unibo.scafi.incarnations.BasicAbstractIncarnation
import it.unibo.scafi.simulation.frontend.controller.GeneralController
import it.unibo.scafi.simulation.frontend.model.{Network, Node}

trait Simulation {
  var network: Network

  def getRunProgram: ()=>(Int,BasicAbstractIncarnation#Export)

  def setRunProgram(program: Any): Unit

  def setDeltaRound(deltaRound: Double): Unit

  def getDeltaRound(): Double

  def setStrategy(strategy: Any): Unit

  def setSensor(sensor: String, value: Any, nodes: Set[Node] = Set()): Unit

  def getSensorValue(s: String): Option[Any]

  def setPosition(n: Node): Unit

  def setController(controller: GeneralController): Unit
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy