KPlato::NodeModifyShutdownCostCmd Class Reference

#include <kptcommand.h>

Inherits KPlato::NamedCommand.

Inheritance diagram for KPlato::NodeModifyShutdownCostCmd:

[legend]
List of all members.

Public Member Functions

 NodeModifyShutdownCostCmd (Part *part, Node &node, double value, QString name=0)
void execute ()
void unexecute ()

Private Attributes

Nodem_node
double m_oldvalue
double m_newvalue

Detailed Description

Definition at line 852 of file kptcommand.h.


Constructor & Destructor Documentation

KPlato::NodeModifyShutdownCostCmd::NodeModifyShutdownCostCmd ( Part part,
Node node,
double  value,
QString  name = 0 
)

Definition at line 1749 of file kptcommand.cc.

References m_newvalue, m_oldvalue, and KPlato::Node::startupCost().


Member Function Documentation

void KPlato::NodeModifyShutdownCostCmd::execute (  ) 

Definition at line 1757 of file kptcommand.cc.

References m_newvalue, m_node, KPlato::NamedCommand::setCommandType(), and KPlato::Node::setShutdownCost().

void KPlato::NodeModifyShutdownCostCmd::unexecute (  ) 

Definition at line 1762 of file kptcommand.cc.

References m_node, m_oldvalue, KPlato::NamedCommand::setCommandType(), and KPlato::Node::setShutdownCost().


Member Data Documentation

Node& KPlato::NodeModifyShutdownCostCmd::m_node [private]

Definition at line 860 of file kptcommand.h.

Referenced by execute(), and unexecute().

double KPlato::NodeModifyShutdownCostCmd::m_oldvalue [private]

Definition at line 861 of file kptcommand.h.

Referenced by NodeModifyShutdownCostCmd(), and unexecute().

double KPlato::NodeModifyShutdownCostCmd::m_newvalue [private]

Definition at line 862 of file kptcommand.h.

Referenced by execute(), and NodeModifyShutdownCostCmd().


The documentation for this class was generated from the following files:
Generated on Wed Nov 22 23:21:48 2006 for KPlato by  doxygen 1.5.1-p1