class Simulator extends Timer with Runnable with LazyLogging
- Alphabetic
- By Inheritance
- Simulator
- LazyLogging
- Runnable
- Timer
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Value Members
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        !=(arg0: Any): Boolean
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        ##(): Int
      
      
      - Definition Classes
- AnyRef → Any
 
-  def +(other: String): String
-  def ->[B](y: B): (Simulator, B)
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        ==(arg0: Any): Boolean
      
      
      - Definition Classes
- AnyRef → Any
 
-  def advanceTime(): Unit
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        asInstanceOf[T0]: T0
      
      
      - Definition Classes
- Any
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        cancel(id: TaskID): Unit
      
      
      Cancels a running task if it is found in the execution queue. Cancels a running task if it is found in the execution queue. - id
- identifier of the task to cancel 
 - Definition Classes
- Timer
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        clone(): AnyRef
      
      
      - Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        continueUntil(cond: ⇒ Boolean): Boolean
      
      
      The task is rescheduled if false. The task is rescheduled if false. Syntactic sugar to clarify the last condition in periodic task. - cond
- the task is rescheduled if the condition is false 
 - Definition Classes
- Timer
- Annotations
- @inline()
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        continueWhile(cond: ⇒ Boolean): Boolean
      
      
      The task is rescheduled if true. The task is rescheduled if true. Syntactic sugar to clarify the last condition in periodic task. - cond
- the task is rescheduled if the condition is true 
 - Definition Classes
- Timer
- Annotations
- @inline()
 
-  def ensuring(cond: (Simulator) ⇒ Boolean, msg: ⇒ Any): Simulator
-  def ensuring(cond: (Simulator) ⇒ Boolean): Simulator
-  def ensuring(cond: Boolean, msg: ⇒ Any): Simulator
-  def ensuring(cond: Boolean): Simulator
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        eq(arg0: AnyRef): Boolean
      
      
      - Definition Classes
- AnyRef
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        equals(arg0: Any): Boolean
      
      
      - Definition Classes
- AnyRef → Any
 
-  def formatted(fmtstr: String): String
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        getClass(): Class[_]
      
      
      - Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        hashCode(): Int
      
      
      - Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        isEmpty: Boolean
      
      
      returns trueif there are no more scheduled tasks.returns trueif there are no more scheduled tasks.- returns
- trueif there are no more scheduled tasks.
 - Definition Classes
- Timer
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        isEmptyBesideDaemons: Boolean
      
      
      returns trueif there are no more scheduled tasks, not counting daemon tasks.returns trueif there are no more scheduled tasks, not counting daemon tasks.- returns
- trueif there are no more scheduled tasks, not counting daemon tasks.
 - Definition Classes
- Timer
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        isInstanceOf[T0]: Boolean
      
      
      - Definition Classes
- Any
 
- 
      
      
      
        
      
    
      
        
        lazy val
      
      
        logger: Logger
      
      
      - Attributes
- protected
- Definition Classes
- LazyLogging
- Annotations
- @transient()
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        ne(arg0: AnyRef): Boolean
      
      
      - Definition Classes
- AnyRef
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        nonEmpty: Boolean
      
      
      returns trueif there are still some scheduled tasks.returns trueif there are still some scheduled tasks.- returns
- trueif there are still some scheduled tasks.
 - Definition Classes
- Timer
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        nonEmptyBesideDaemons: Boolean
      
      
      returns trueif there are still some scheduled tasks, not counting daemon tasks.returns trueif there are still some scheduled tasks, not counting daemon tasks.- returns
- trueif there are still some scheduled tasks, not counting daemon tasks.
 - Definition Classes
- Timer
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        notify(): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        notifyAll(): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        now: Time
      
      
      Returns the current value of the clock elapsed since the beginning of the execution. Returns the current value of the clock elapsed since the beginning of the execution. The value is in simulated time if the system runs as a simulation. - returns
- the current time 
 - Definition Classes
- Timer
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        periodically(delay: Time, period: Time)(action: (Time) ⇒ Boolean): TaskID
      
      
      Creates a new periodic task to periodically execute action, until it returnsfalse.Creates a new periodic task to periodically execute action, until it returnsfalse. To make the code more readable, one can use continueWhile or continueUntil as syntactic sugar.- delay
- delay until the first execution of the task. 
- period
- interval between periodic executions of the task. 
- action
- the action to execute periodically. It is rescheduled if it returns - true.
- returns
- identifier of the newly created task. 
 - Definition Classes
- Timer
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        periodically(period: Time)(action: (Time) ⇒ Boolean): TaskID
      
      
      Creates a new periodic task to periodically execute action, until it returnsfalse.Creates a new periodic task to periodically execute action, until it returnsfalse. Same as periodically(delay:neko\.util\.Time,period:neko\.util\.Time)(action:neko\.util\.Time=>Boolean):neko\.TaskID* but the first delay is the same as the period.(Time,Time)(Time⇒Boolean):TaskID* - period
- interval between periodic executions of the task, and delay until the first execution. 
- action
- the action to execute periodically. It is rescheduled if it returns - true.
- returns
- identifier of the newly created task. 
 - Definition Classes
- Timer
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        run(): Unit
      
      
      - Definition Classes
- Simulator → Runnable
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        schedule(task: Task): TaskID
      
      
      - Definition Classes
- Timer
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        scheduleAfter(delay: Time)(action: (Time) ⇒ Unit): TaskID
      
      
      Creates a new task which will be executed once, after the specified delay. Creates a new task which will be executed once, after the specified delay. To make the code more readable, one can use continueWhile or continueUntil as syntactic sugar. - delay
- delay after which the task will be executed. 
- action
- the action to execute periodically. It is rescheduled if it returns - true.
- returns
- identifier of the newly created task. 
 - Definition Classes
- Timer
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        scheduleAt(time: Time)(action: (Time) ⇒ Unit): TaskID
      
      
      Creates a new task which will be executed once, at a specified time (or immediately if already past). Creates a new task which will be executed once, at a specified time (or immediately if already past). To make the code more readable, one can use continueWhile or continueUntil as syntactic sugar. - time
- time at which the task will be executed. 
- action
- the action to execute periodically. It is rescheduled if it returns - true.
- returns
- identifier of the newly created task. 
 - Definition Classes
- Timer
 
- 
      
      
      
        
      
    
      
        
        val
      
      
        scheduler: Scheduler
      
      
      - Definition Classes
- Timer
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        synchronized[T0](arg0: ⇒ T0): T0
      
      
      - Definition Classes
- AnyRef
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        toString(): String
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(arg0: Long, arg1: Int): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @throws( ... )
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(arg0: Long): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @throws( ... )
 
-  def →[B](y: B): (Simulator, B)