IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
IG.Sim.SimTensorFieldElementDto< FieldType > Class Template Reference

Base class for a DTO that holds node values of a single element (component) of a specific tensor field envolved in simulation. More...

+ Inheritance diagram for IG.Sim.SimTensorFieldElementDto< FieldType >:
+ Collaboration diagram for IG.Sim.SimTensorFieldElementDto< FieldType >:

Public Member Functions

 SimTensorFieldElementDto (string fieldName, string fieldElementExtension, int elementRowIndex, int elementColumnIndex)
 Constructs a new vector simulation field element DTO. More...
 
- Public Member Functions inherited from IG.Sim.SimFieldElemetDto< FieldType >
 SimFieldElemetDto (string fieldName, string fieldElementExtension, int[] elementIndices)
 Constructs a new simulation field element DTO. More...
 
virtual string GetFieldElementName ()
 Returns full name of hte field element, composed of the field name and component name (e.g. strain_xy, velocity_z). More...
 
int GetRank ()
 Returns the rank of the current field element, which coincides with number of indices that define the current elemet. More...
 
int GetIndex (int whichIndex)
 Returns the specified index of the current element (applies for fields of rank 1 or more). More...
 
override SimFieldElemetDto
< FieldType > 
CreateObject ()
 Creates and returns a new object of the type whose data is represented by the current DTO (Data Transfer Object). WARNING: Implement thread locking in overriding functions! More...
 
override void NulllifyCrossLinks ()
 Sets all cross links in the internall structure of the current DTO (data transfer object) to null. Cross links facilitate traversing of teh internal structure. More...
 
override void RestoreCrossLinks ()
 Restore cross links in the internall structure of the current DTO. More...
 
- Public Member Functions inherited from IG.Sim.SimulationComponentDtoBase< Type, BaseType >
virtual string GetComponentType ()
 Returns type of the current component. More...
 
- Public Member Functions inherited from IG.Lib.SerializationDtoBase< Type, BaseType >
 SerializationDtoBase ()
 
virtual bool GetNull ()
 Returns a flag indicating whether the object represented by the current DTO is null. More...
 
virtual void SetNull (bool isNull)
 Sets a flag indicating whether the object represented by the current DTO is null. More...
 
virtual void CopyFromBase (BaseType obj)
 Copies data to the current DTO from an object of type BaseType. More...
 
virtual void CopyToBase (ref BaseType obj)
 Copies data from the current DTO to an object of the base type. Object is created anew if necessary by using the CreateObject() method. More...
 
virtual void CopyFrom (Type obj)
 Copies data to the current DTO from an object of type Type. More...
 
virtual void CopyTo (ref Type obj)
 Copies data from the current DTO to an object of type Type. Object is created anew if necessary by using the CreateObject() method. More...
 
virtual void CopyFromObject (object obj)
 Copies data to the current DTO from an object of type object. The necessary casts are performed. More...
 
virtual void CopyToObject (ref object obj)
 Copies data from the current DTO to an object of type object. Object is created anew if necessary by using the CreateObject() method. The necessary casts are performed. More...
 
override string ToString ()
 Creates and returns string representation of the current DTO (data transfer object). More...
 
- Public Member Functions inherited from IG.Sim.ISimulationComponentDto
string GetComponentType ()
 Returns type of the current component. More...
 

Properties

int ElementRowIndex [get, set]
 Gets or sets element row index for the current tensor field element DTO. More...
 
int ElementColumnIndex [get, set]
 Gets or sets element column index for the current tensor field element DTO. More...
 
- Properties inherited from IG.Lib.SerializationDtoBase< Type, BaseType >
object Lock [get]
 This object's central lock object to be used by other object. Do not use this object for locking in class' methods, for this you should use InternalLock. More...
 
- Properties inherited from IG.Lib.ILockable
object Lock [get]
 

Additional Inherited Members

- Static Public Member Functions inherited from IG.Lib.SerializationDto
static ObjectType CopyToObjectReturned< DtoType, ObjectType > (DtoType dto, ObjectType obj)
 Replacement for CopyToObject for cases where object can not be passed by reference. The returned object must be assigned to object (property, list element, etc.) to which object state is copied. More...
 
static void CopyToObject< DtoType, ObjectType > (DtoType dto, ref ObjectType obj)
 Copies object state form the specified DTO (data transfer object) to the specified object. More...
 
static DtoType CopyFromObjectReturned< DtoType, ObjectType > (ObjectType obj, DtoType dto)
 Replacement for CopyFromObject for cases where object can not be passed by reference. The returned object must be assigned to object (property, list element, etc.) to which object state is copied. More...
 
static void CopyFromObject< DtoType, ObjectType > (ObjectType obj, ref DtoType dto)
 Copies object state form the specified object to the corresponding DTO (data transfer object). More...
 
static ObjectType[] CopyArrayToObjectReturned< DtoType, ObjectType > (DtoType[] tabDto, ObjectType[] tabObj)
 Replacement for CopyArrayToObject for cases where object can not be passed by reference. The returned object must be assigned to object (property, list element, etc.) to which data is copied. More...
 
static void CopyArrayToObject< DtoType, ObjectType > (DtoType[] tabDto, ref ObjectType[] tabObj)
 Copies array of DTOs (Data Transfer Objects) to an array of appropriate objects. More...
 
static DtoType[] CopyArrayFromObjectReturned< DtoType, ObjectType > (ObjectType[] tabObj, DtoType[] tabDto)
 Replacement for CopyArrayFromObject for cases where object can not be passed by reference. The returned object must be assigned to object (property, list element, etc.) to which data is copied. More...
 
static void CopyArrayFromObject< DtoType, ObjectType > (ObjectType[] tabObj, ref DtoType[] tabDto)
 Copies array of objects to an array of DTOs. More...
 
static List< ObjectType > CopyListToObjectReturned< DtoType, ObjectType > (DtoType[] tabDto, List< ObjectType > listObj)
 Replacement for CopyListToObject for cases where object can not be passed by reference. The returned object must be assigned to object (property, list element, etc.) to which data is copied. More...
 
static void CopyListToObject< DtoType, ObjectType > (DtoType[] tabDto, ref List< ObjectType > listObj)
 Copies array of DTOs (Data Transfer Objects) to a list of appropriate objects. More...
 
static DtoType[] CopyListFromObjectReturned< DtoType, ObjectType > (List< ObjectType > tabObj, DtoType[] tabDto)
 Replacement for CopyArrayFromObject for cases where object can not be passed by reference. The returned object must be assigned to object (property, list element, etc.) to which data is copied. More...
 
static void CopyListFromObject< DtoType, ObjectType > (List< ObjectType > tabObj, ref DtoType[] tabDto)
 Copies array of objects to a list of DTOs. More...
 
- Public Attributes inherited from IG.Sim.SimFieldElemetDto< FieldType >
string FieldName
 Name of the field whose component is represented by the current object. More...
 
string FieldElementExtension
 Extension of the field element name that specifies which field component is represented (applies to vector and tensor fields). More...
 
int[] ElementIndices
 Indices of the current field element. More...
 
double[] Values
 Nodal values of the current field elemet. More...
 
- Protected Member Functions inherited from IG.Sim.SimFieldElemetDto< FieldType >
override void CopyFromPlain (SimFieldElemetDto< FieldType > obj)
 
override void CopyToPlain (ref SimFieldElemetDto< FieldType > obj)
 
- Protected Member Functions inherited from IG.Sim.SimulationComponentDtoBase< Type, BaseType >
 SimulationComponentDtoBase ()
 
- Protected Member Functions inherited from IG.Lib.SerializationDtoBase< Type, BaseType >
abstract void CopyFromPlain (BaseType obj)
 Copies contents of the specified object to the current DTO (Data Transfer Object). More...
 
abstract void CopyToPlain (ref BaseType obj)
 Copies contents of the current DTO (Data Transfer Object) to the specified object. More...
 
- Protected Member Functions inherited from IG.Lib.SerializationDto
 SerializationDto ()
 
- Protected Attributes inherited from IG.Lib.SerializationDtoBase< Type, BaseType >
bool _isNull = false
 

Detailed Description

Base class for a DTO that holds node values of a single element (component) of a specific tensor field envolved in simulation.

Template Parameters
FieldTypeType of the field DTO whose component is carried by the current DTO.
Type Constraints
FieldType :SimFieldBaseDto<FieldType> 

Constructor & Destructor Documentation

IG.Sim.SimTensorFieldElementDto< FieldType >.SimTensorFieldElementDto ( string  fieldName,
string  fieldElementExtension,
int  elementRowIndex,
int  elementColumnIndex 
)
inline

Constructs a new vector simulation field element DTO.

Parameters
fieldNameName of the field.
fieldElementExtensionEventual Extension of the field indicating which field element is in question.

<paramparam name="elementRowIndex">Row number of the tensor field element represented by teh current object.</paramparam> <paramparam name="elementColumnIndex">Row number of the tensor field element represented by teh current object.</paramparam>

Property Documentation

int IG.Sim.SimTensorFieldElementDto< FieldType >.ElementRowIndex
getset

Gets or sets element row index for the current tensor field element DTO.

int IG.Sim.SimTensorFieldElementDto< FieldType >.ElementColumnIndex
getset

Gets or sets element column index for the current tensor field element DTO.


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