cz.zcu.fav.kiv.jsim.hla
Interface JSimHLAProcess

All Known Implementing Classes:
JSimHLARemoteProcess, JSimProcess

public interface JSimHLAProcess

JSimHLAProcess represents process, which can be local or remote. Since HLA support was added to J-Sim, every process in simulation can be either local or remote. JSimHLAProcess provides methods with the same functionality for local and remote processes.

Author:
Stanislav Kozina
See Also:
JSimProcess

Method Summary
 void activate(double when)
          Activates a process at the given time.
 void cancel()
          Deletes all process's scheduled events from the calendar.
 int getState()
          Returns the process's state.
 boolean isIdle()
          Returns true if the process is idle, false otherwise.
 

Method Detail

activate

public void activate(double when)
              throws JSimSecurityException,
                     JSimInvalidParametersException
Activates a process at the given time.

Parameters:
when - Absolute simulation time when the process should be activated.
Throws:
JSimSecurityException
JSimInvalidParametersException

cancel

public void cancel()
            throws JSimSecurityException
Deletes all process's scheduled events from the calendar.

Throws:
JSimSecurityException

getState

public int getState()
Returns the process's state.

Returns:
The process's state.

isIdle

public boolean isIdle()
Returns true if the process is idle, false otherwise.

Returns:
True if the process is idle, false otherwise.