Transition Class Referenceabstract

#include <Transition.h>

Inheritance diagram for Transition:
Checkable Transition_Gen Transition_GenByp

Defines the transition interface for the TransitionSystem. More...

Public Types

typedef SP_Transition SP
 strong pointer More...
 
typedef WP_Transition WP
 weak pointer More...
 

INTERFACE<<Origen::Checkable>>

See Origen::Checkable for details.

std::string name () const
 
void get_name (std::string &name) const
 
void set_name (std::string name)
 
int id () const
 
void get_id (int &id) const
 
void set_id (int id)
 
bool has_initialized_id () const
 
std::string to_string () const
 
bool good () const
 
bool good (Vec_Str &errors) const
 
bool is_initialized () const
 
Scale::Json::Value to_json () const
 

INTERFACE<<Origen::Transition>>

See Origen::Transition for details.

WP_Nuclide product () const
 return the product nuclide More...
 
void set_product (WP_Nuclide product)
 set the product nuclide More...
 
WP_Channel channel () const
 return the parent channel More...
 
void set_channel (WP_Channel channel)
 set the channel More...
 
double yield () const
 return the yield, i.e. number of product nuclides per transition More...
 
void set_yield (const double &yield)
 set the yield More...
 
bool has_initialized_yield () const
 whether yield has been initialized for this transition More...
 
double coeff () const
 
double rate () const
 
bool is_byproduct () const
 whether this transition is a byproduct More...
 

Private Member Functions

virtual WP_Nuclide product_impl () const =0
 
virtual void set_product_impl (WP_Nuclide product)=0
 
virtual WP_Channel channel_impl () const =0
 
virtual void set_channel_impl (WP_Channel channel)=0
 
virtual double yield_impl () const =0
 
virtual void set_yield_impl (const double &yield)=0
 
virtual bool has_initialized_yield_impl () const =0
 
virtual bool is_byproduct_impl () const
 
virtual bool is_initialized_impl () const
 useful to chain More...
 
virtual std::string name_impl () const
 
virtual int id_impl () const
 
virtual bool good_impl (Vec_Str &errors) const
 useful to chain More...
 
virtual Scale::Json::Value to_json_impl () const
 useful to chain More...
 

Detailed Description

Defines the transition interface for the TransitionSystem.

The transition, in the context of the transition system, manages one piece of data:

  1. yield (number of products produced per transition)

It has

  1. a weak pointer to its parent channel
  2. a weak pointer to the product of the transition
See also
Channel, Nuclide
Examples:
tstTransitionSystem_Gen.cpp.

Member Typedef Documentation

typedef SP_Transition SP

strong pointer

typedef WP_Transition WP

weak pointer

Member Function Documentation

Nuclide::WP product ( ) const

return the product nuclide

Referenced by Transition_Gen::set_product_impl().

void set_product ( WP_Nuclide  product)

set the product nuclide

Referenced by Transition_Gen::Transition_Gen().

void set_channel ( WP_Channel  channel)

set the channel

double yield ( ) const

return the yield, i.e. number of product nuclides per transition

Referenced by Transition_Gen::set_yield_impl().

void set_yield ( const double &  yield)

set the yield

bool has_initialized_yield ( ) const

whether yield has been initialized for this transition

double rate ( ) const
bool is_byproduct ( ) const

whether this transition is a byproduct

Nuclide::WP product_impl ( ) const
privatepure virtual

Implemented in Transition_Gen.

virtual void set_product_impl ( WP_Nuclide  product)
privatepure virtual

Implemented in Transition_Gen.

Channel::WP channel_impl ( ) const
privatepure virtual

Implemented in Transition_Gen.

virtual void set_channel_impl ( WP_Channel  channel)
privatepure virtual

Implemented in Transition_Gen.

double yield_impl ( ) const
privatepure virtual

Implemented in Transition_Gen.

virtual void set_yield_impl ( const double &  yield)
privatepure virtual

Implemented in Transition_Gen.

virtual bool has_initialized_yield_impl ( ) const
privatepure virtual

Implemented in Transition_Gen.

bool is_byproduct_impl ( ) const
privatevirtual

Reimplemented in Transition_GenByp.

bool is_initialized_impl ( ) const
privatevirtual

useful to chain

Reimplemented from Checkable.

std::string name_impl ( ) const
privatevirtual

Reimplemented from Checkable.

int id_impl ( ) const
privatevirtual

Reimplemented from Checkable.

References Origen::BAD_INT.

bool good_impl ( Vec_Str errors) const
privatevirtual

useful to chain

Reimplemented from Checkable.

Json::Value to_json_impl ( ) const
privatevirtual

useful to chain

Reimplemented from Checkable.

void get_name ( std::string &  name) const
inherited
Examples:
tstTransitionSystem_Gen.cpp.

Referenced by TEST().

void set_name ( std::string  name)
inherited
Examples:
tstTransitionSystem_Gen.cpp.

Referenced by TEST().

void get_id ( int &  id) const
inherited
Examples:
tstTransitionSystem_Gen.cpp.

Referenced by TEST().

void set_id ( int  id)
inherited
Examples:
tstTransitionSystem_Gen.cpp.

Referenced by TEST().

std::string to_string ( ) const
inherited
bool good ( ) const
inherited
bool good ( Vec_Str errors) const
inherited
bool is_initialized ( ) const
inherited
Scale::Json::Value to_json ( ) const
inherited

The documentation for this class was generated from the following files: