SimulationNull

final class SimulationNull implements Simulation

A class that implements the Null Object Design Pattern for Simulation class.

Author:Manoel Campos da Silva Filho

See also: Simulation.NULL

Methods

abort

public void abort()

addEntity

public void addEntity(CloudSimEntity entity)

addOnClockTickListener

public Simulation addOnClockTickListener(EventListener<EventInfo> listener)

addOnEventProcessingListener

public Simulation addOnEventProcessingListener(EventListener<SimEvent> listener)

addOnSimulationPauseListener

public Simulation addOnSimulationPauseListener(EventListener<EventInfo> listener)

addOnSimulationStartListener

public Simulation addOnSimulationStartListener(EventListener<EventInfo> listener)

cancel

public SimEvent cancel(SimEntity src, Predicate<SimEvent> predicate)

cancelAll

public boolean cancelAll(SimEntity src, Predicate<SimEvent> predicate)

clock

public double clock()

clockInHours

public double clockInHours()

clockInMinutes

public double clockInMinutes()

findFirstDeferred

public SimEvent findFirstDeferred(SimEntity dest, Predicate<SimEvent> predicate)

getCalendar

public Calendar getCalendar()

getCloudInfoService

public CloudInformationService getCloudInfoService()

getDatacenterList

public Set<Datacenter> getDatacenterList()

getEntityList

public List<SimEntity> getEntityList()

getMinTimeBetweenEvents

public double getMinTimeBetweenEvents()

getNetworkTopology

public NetworkTopology getNetworkTopology()

getNumEntities

public int getNumEntities()

getNumberOfFutureEvents

public long getNumberOfFutureEvents(Predicate<SimEvent> predicate)

holdEntity

public void holdEntity(SimEntity src, long delay)

isPaused

public boolean isPaused()

isRunning

public boolean isRunning()

isTerminationTimeSet

public boolean isTerminationTimeSet()

isTimeToTerminateSimulationUnderRequest

public boolean isTimeToTerminateSimulationUnderRequest()

pause

public boolean pause()

pause

public boolean pause(double time)

pauseEntity

public void pauseEntity(SimEntity src, double delay)

removeOnClockTickListener

public boolean removeOnClockTickListener(EventListener<? extends EventInfo> listener)

removeOnEventProcessingListener

public boolean removeOnEventProcessingListener(EventListener<SimEvent> listener)

removeOnSimulationPauseListener

public boolean removeOnSimulationPauseListener(EventListener<EventInfo> listener)

resume

public boolean resume()

select

public SimEvent select(SimEntity dest, Predicate<SimEvent> predicate)

send

public void send(SimEvent evt)

send

public void send(SimEntity src, SimEntity dest, double delay, int tag, Object data)

sendFirst

public void sendFirst(SimEvent evt)

sendFirst

public void sendFirst(SimEntity src, SimEntity dest, double delay, int tag, Object data)

sendNow

public void sendNow(SimEntity src, SimEntity dest, int tag, Object data)

setNetworkTopology

public void setNetworkTopology(NetworkTopology networkTopology)

start

public double start()

terminate

public boolean terminate()

terminateAt

public boolean terminateAt(double time)

wait

public void wait(CloudSimEntity src, Predicate<SimEvent> predicate)

waiting

public long waiting(SimEntity dest, Predicate<SimEvent> predicate)