ContactOption Class Reference

the ContactOption class. More...

#include <OSOption.h>

Collaboration diagram for ContactOption:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ContactOption ()
 Default constructor.
 ~ContactOption ()
 Class destructor.
bool IsEqual (ContactOption *that)
 A function to check for the equality of two objects.
bool setRandom (double density, bool conformant)
 A function to make a random instance of this class.

Public Attributes

std::string transportType
 the contact mechanism
std::string value
 the value of the <contact> element

Detailed Description

the ContactOption class.

Author:
Robert Fourer, Gus Gassmann, Jun Ma, Kipp Martin
Version:
1.0, 21/07/2008
Since:
OS 1.1
Remarks:
A data structure class that corresponds to the contact method in the OSoL schema.

Definition at line 88 of file OSOption.h.


Constructor & Destructor Documentation

ContactOption::ContactOption (  ) 

Default constructor.

Definition at line 52 of file OSOption.cpp.

ContactOption::~ContactOption (  ) 

Class destructor.

Definition at line 61 of file OSOption.cpp.


Member Function Documentation

bool ContactOption::IsEqual ( ContactOption that  ) 

A function to check for the equality of two objects.

Definition at line 9117 of file OSOption.cpp.

References transportType, and value.

bool ContactOption::setRandom ( double  density,
bool  conformant 
)

A function to make a random instance of this class.

Parameters:
density,: corresponds to the probability that a particular child element is created
conformant,: if true enforces side constraints not enforceable in the schema (e.g., agreement of "numberOfXXX" atrbutes and <XXX> children)

Definition at line 11323 of file OSOption.cpp.

References OSRand(), transportType, and value.

Referenced by GeneralOption::setRandom().


Member Data Documentation

std::string ContactOption::transportType

the contact mechanism

Definition at line 93 of file OSOption.h.

Referenced by OSOption::getContactTransportType(), IsEqual(), OSOption::setContact(), OSOption::setContactTransportType(), setRandom(), and OSoLWriter::writeOSoL().

std::string ContactOption::value

the value of the <contact> element

Definition at line 96 of file OSOption.h.

Referenced by OSOption::getContact(), IsEqual(), OSOption::setContact(), setRandom(), and OSoLWriter::writeOSoL().


The documentation for this class was generated from the following files:
Generated on Wed Nov 30 03:11:28 2011 by  doxygen 1.4.7