Schedulable.java 591 B

123456789101112131415161718192021
  1. package de.tu_darmstadt.tk.SmartHomeNetworkSim.core.scheduler;
  2. /**
  3. * Interface for events or objects, which can be scheduled during simulation of the network or world model.
  4. *
  5. * @author Andreas T. Meyer-Berg
  6. */
  7. public interface Schedulable {
  8. /**
  9. * Returns the timestep, in which the event begins
  10. * @return timestep, in which the event begins
  11. */
  12. public long getEventTime();
  13. /**
  14. * Simulates the given Event, might update states of model parts and schedule further events.
  15. * @param time minimum timestamp
  16. */
  17. public void simulateEvent(long time);
  18. }