Main Page | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

NewSimulatorHotSwap Class Reference

Provides functions for simulating the hotswap behaviour. More...

#include <new_sim_hotswap.h>

Inheritance diagram for NewSimulatorHotSwap:

Inheritance graph
[legend]
Collaboration diagram for NewSimulatorHotSwap:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 NewSimulatorHotSwap (NewSimulatorResource *res)
 Constructor.
 NewSimulatorHotSwap (NewSimulatorResource *res, SaHpiTimeoutT insertTime, SaHpiTimeoutT extractTime, SaHpiHsStateT startState)
 Full qualified constructor to fill an object with the parsed data.
 ~NewSimulatorHotSwap ()
 Destructor.
void Dump (NewSimulatorLog &dump) const
 Dump hotswap information.
SaHpiHsStateT GetState ()
 Get the HotSwap State.
SaHpiTimeoutT GetExtractTimeout ()
 Get Extraction Timeout.
SaErrorT StartResource (oh_event *e)
 Start a resource from NOT_PRESENT.
void SetTimeouts (SaHpiTimeoutT insert, SaHpiTimeoutT extract)
 Set both timeout values.
SaErrorT CancelPolicy ()
 HPI function saHpiHotSwapPolicyCancel.
SaErrorT SetActive ()
 HPI function saHpiHotSwapActiveSet.
SaErrorT SetInactive ()
 HPI function saHpiHotSwapInactiveSet.
SaErrorT GetExtractTimeout (SaHpiTimeoutT &timeout)
 HPI function saHpiAutoExtractTimeoutGet.
SaErrorT SetExtractTimeout (SaHpiTimeoutT timeout)
 HPI function saHpiAutoExtractTimeoutSet.
SaErrorT GetState (SaHpiHsStateT &state)
 HPI function saHpiHotSwapStateGet.
SaErrorT ActionRequest (SaHpiHsActionT action)
 HPI function saHpiHotSwapActionRequest.

Protected Member Functions

virtual bool TriggerAction ()
 Check if the hotswap policy is still valid and send event.

Detailed Description

Provides functions for simulating the hotswap behaviour.


Member Function Documentation

SaErrorT NewSimulatorHotSwap::ActionRequest SaHpiHsActionT  action  ) 
 

HPI function saHpiHotSwapActionRequest.

See also the description of the function inside the specification or header file. Copying the internal values and show the remaining time if the timer was started.

Parameters:
action Requested action
Returns:
HPI return code

SaErrorT NewSimulatorHotSwap::CancelPolicy  ) 
 

HPI function saHpiHotSwapPolicyCancel.

See also the description of the function inside the specification or header file. Copying the internal values and show the remaining time if the timer was started.

Returns:
HPI return code

void NewSimulatorHotSwap::Dump NewSimulatorLog dump  )  const
 

Dump hotswap information.

Parameters:
dump address of the log

SaErrorT NewSimulatorHotSwap::GetExtractTimeout SaHpiTimeoutT &  timeout  ) 
 

HPI function saHpiAutoExtractTimeoutGet.

See also the description of the function inside the specification or header file. Copying the internal values and show the remaining time if the timer was started.

Parameters:
timeout address of timeout value to be filled
Returns:
HPI return code

SaErrorT NewSimulatorHotSwap::GetState SaHpiHsStateT &  state  ) 
 

HPI function saHpiHotSwapStateGet.

See also the description of the function inside the specification or header file. Copying the internal values and show the remaining time if the timer was started.

Parameters:
state address of state to be filled
Returns:
HPI return code

SaErrorT NewSimulatorHotSwap::SetActive  ) 
 

HPI function saHpiHotSwapActiveSet.

See also the description of the function inside the specification or header file. Copying the internal values and show the remaining time if the timer was started.

Returns:
HPI return code

SaErrorT NewSimulatorHotSwap::SetExtractTimeout SaHpiTimeoutT  timeout  ) 
 

HPI function saHpiAutoExtractTimeoutSet.

See also the description of the function inside the specification or header file. Copying the internal values and show the remaining time if the timer was started.

Parameters:
timeout timeout value to be set
Returns:
HPI return code

SaErrorT NewSimulatorHotSwap::SetInactive  ) 
 

HPI function saHpiHotSwapInactiveSet.

See also the description of the function inside the specification or header file. Copying the internal values and show the remaining time if the timer was started.

Returns:
HPI return code

bool NewSimulatorHotSwap::TriggerAction  )  [protected, virtual]
 

Check if the hotswap policy is still valid and send event.

Returns:
true if thread can exit, false if not

Implements NewSimulatorTimerThread.


The documentation for this class was generated from the following files:
Generated on Mon Apr 26 14:39:35 2010 for New Simulator by  doxygen 1.4.4