SimEntityNull

final class SimEntityNull implements SimEntity

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

Author:Manoel Campos da Silva Filho

See also: SimEntity.NULL

Methods

compareTo

public int compareTo(SimEntity entity)

getId

public long getId()

getName

public String getName()

getSimulation

public Simulation getSimulation()

getState

public State getState()

isAlive

public boolean isAlive()

isFinished

public boolean isFinished()

isStarted

public boolean isStarted()

processEvent

public void processEvent(SimEvent evt)

run

public void run()

schedule

public boolean schedule(SimEvent evt)

schedule

public boolean schedule(SimEntity dest, double delay, int tag, Object data)

schedule

public boolean schedule(double delay, int tag, Object data)

schedule

public boolean schedule(SimEntity dest, double delay, int tag)

setName

public SimEntity setName(String newName)

setSimulation

public SimEntity setSimulation(Simulation simulation)

setState

public SimEntity setState(State state)

shutdownEntity

public void shutdownEntity()

start

public void start()