carta
EquipmentComposite(3)

EquipmentComposite3

Equipmentcomposite implements the transparentcomponent children management routines as well as the domain behavior of equipment.

Usage

Inherits Equipment.

Public Member Functions

EquipmentComposite (NameCref)

Equal if theName == theName. virtual Watt getPower (void)

Protected Member Functions

EquipmentComposite (void) throw (corelinux::CompositeException )

Detailed Description

EquipmentComposite implements the TransparentComponent children management routines as well as the domain behavior of Equipment.

In our implementation we use the EquipmentComposite as the concrete composite. Other implementations may wish to extend the Equipment composite to real world composit types of the problem domain.

Member Function Documentation

void EquipmentComposite::addComponent (EquipmentPtr aPtr) throw (corelinux::InvalidCompositeException ) [virtual]

Interface for adding component children to a composition. The default implementation throws an exception to insure needless calls are not made to leafs components

Parameters:

CompImpl - Component instantiated with implementation

Exceptions:

InvalidCompositeInstance .RE

Reimplemented from corelinux::TransparentComponent< EquipmentPtr >.

void EquipmentComposite::removeComponent (EquipmentPtr aPtr) throw (corelinux::InvalidCompositeException ) [virtual]

Interface for removing component children from a composition. The default implementation throws an exception to insure needless calls are not made to leafs

Parameters:

CompImpl - Component instantiated with implementation

Exceptions:

InvalidCompositeInstance .RE

Reimplemented from corelinux::TransparentComponent< EquipmentPtr >.

History

  • Debian 3.1 (Sarge): the text shown here
  • Debian 3.0 (Woody)

Author

Generated automatically by Doxygen for CoreLinux++ from the source code.

From libcorelinux-dev 0.4.32-5 in Debian 3.1 (Sarge). Parsed by carta from the page's man source.