Ofcas.Lk.Api.Client - Version 3.0  3.0.0.111
Ofcas.Lk.Api.Client.Core.Phase Class Reference

Phase is the representation of a LogiKal phase. The children are of type Elevation. The children can be received from the InfoList (CoreObject<T>.Infos). More...

Inheritance diagram for Ofcas.Lk.Api.Client.Core.Phase:
Ofcas.Lk.Api.Client.Core.CoreObjectFullyQualified< Project, PhaseInfo, Elevation, ElevationInfo > Ofcas.Lk.Api.Client.Ui.PhaseUi

Public Member Functions

 Phase (IApiService apiService, Guid coreObjectId, Project parent, PhaseInfo coreInfo)
 Creates a new phase. More...
 
override PhaseInfo Refresh ()
 
override Elevation GetChild (ElevationInfo elevationInfo)
 Gets a Elevation based on a ElevationInfo. More...
 
override IEnumerable< ElevationGetChildren (IEnumerable< ElevationInfo > childrenInfos=null)
 Gets Elevations based on an ElevationInfos. More...
 
Elevation GetElevation (ElevationInfo elevationInfo)
 This method is deprecated. Please use GetChild(ElevationInfo) instead. More...
 
override OperationInfo CanEdit (string key, object value)
 Checks whether an phase can be edited or not. More...
 
override PhaseInfo Edit (string key, object value)
 Edits an phase based on a key and a value. More...
 
override OperationInfo CanCreateChild ()
 Checks whether an elevation can be created or not. More...
 
override ElevationInfo CreateChild ()
 Creates a new elevation with a default name. Call Elevation.Edit with WellKnownEditKeys.Elevation to change values. More...
 
override OperationInfo CanDeleteChild (ElevationInfo elevationInfo)
 Checks whether an elevation can be deleted or not. More...
 
override void DeleteChild (ElevationInfo elevationInfo)
 Deletes an elevation based on an info object. More...
 
override OperationInfo CanCopyFrom (ICoreInfo coreInfo, bool deepCheck=true)
 
override ElevationInfo CopyFrom (ICoreInfo coreInfo)
 Copies an object into this phase based on an info object. More...
 
ElevationInfo RestoreChild (ElevationInfo elevationInfo)
 Restores an Elevation based on a ElevationInfo. More...
 
string GetNextPositionNumber ()
 Retrieves the next available position number of this phase. More...
 
override ElevationInfo RefreshChild (ElevationInfo childInfo)
 

Protected Member Functions

override void RefreshChildren (bool clearEvents)
 
ElevationInfo CopyFrom (ICoreInfo coreInfo, bool verbose)
 Calls public methods. More...
 
override IEnumerable< ElevationInfoGetChildrenInfos ()
 
virtual Elevation CreateNewInstance (Guid responseNewCoreObjectId, ElevationInfo elevationInfo)
 
bool IsChild (ElevationInfo elevationInfo)
 Determines if the provided info is the info a child of this object. More...
 
bool ObjectChanged (ISynchronizedEvent synchronizedEvent)
 
bool ChildrenChanged (ISynchronizedEvent synchronizedEvent)
 
- Protected Member Functions inherited from Ofcas.Lk.Api.Client.Core.CoreObjectFullyQualified< Project, PhaseInfo, Elevation, ElevationInfo >
 CoreObjectFullyQualified (IApiService apiService, Guid coreObjectId, TParent parent, TOwnInfo ownInfo)
 Creates a new instance of CoreObjectFullyQualified<TParent,TOwnInfo,TChild,TChildInfo> with the given parameters. More...
 

Properties

ISynchronizationContainer SynchronizationContainer [get]
 
- Properties inherited from Ofcas.Lk.Api.Client.Core.CoreObjectFullyQualified< Project, PhaseInfo, Elevation, ElevationInfo >
TParent Parent [get]
 
TOwnInfo Info [get]
 

Detailed Description

Phase is the representation of a LogiKal phase. The children are of type Elevation. The children can be received from the InfoList (CoreObject<T>.Infos).

Constructor & Destructor Documentation

◆ Phase()

Ofcas.Lk.Api.Client.Core.Phase.Phase ( IApiService  apiService,
Guid  coreObjectId,
Project  parent,
PhaseInfo  coreInfo 
)

Creates a new phase.

Parameters
apiServiceThe used IApiService.
coreObjectIdThe core object id for this object.
parentThe parent of this object.
coreInfoThe info used to create this object.

Member Function Documentation

◆ CanCreateChild()

override OperationInfo Ofcas.Lk.Api.Client.Core.Phase.CanCreateChild ( )

Checks whether an elevation can be created or not.

Returns

◆ CanDeleteChild()

override OperationInfo Ofcas.Lk.Api.Client.Core.Phase.CanDeleteChild ( ElevationInfo  elevationInfo)

Checks whether an elevation can be deleted or not.

Parameters
elevationInfoThe info of the elevation to be deleted.
Returns

◆ CanEdit()

override OperationInfo Ofcas.Lk.Api.Client.Core.Phase.CanEdit ( string  key,
object  value 
)
virtual

Checks whether an phase can be edited or not.

Parameters
keyThe key of the value to be edited. See WellKnownEditKeys.Phase for possible edit keys.
valueThe value to be set.
Returns

Reimplemented from Ofcas.Lk.Api.Client.Core.CoreObjectFullyQualified< Project, PhaseInfo, Elevation, ElevationInfo >.

◆ CopyFrom() [1/2]

override ElevationInfo Ofcas.Lk.Api.Client.Core.Phase.CopyFrom ( ICoreInfo  coreInfo)

Copies an object into this phase based on an info object.

Parameters
coreInfoThe info of the object to be copied.
Returns
Returns an info object of the copied / created elevation.

◆ CopyFrom() [2/2]

ElevationInfo Ofcas.Lk.Api.Client.Core.Phase.CopyFrom ( ICoreInfo  coreInfo,
bool  verbose 
)
protected

Calls public methods.

Parameters
coreInfo
verboseThe flag to show the copydialog.
Returns

◆ CreateChild()

override ElevationInfo Ofcas.Lk.Api.Client.Core.Phase.CreateChild ( )

Creates a new elevation with a default name. Call Elevation.Edit with WellKnownEditKeys.Elevation to change values.

Returns
Returns an info object of the created elevation.

◆ DeleteChild()

override void Ofcas.Lk.Api.Client.Core.Phase.DeleteChild ( ElevationInfo  elevationInfo)

Deletes an elevation based on an info object.

Parameters
elevationInfoThe info of the elevation to be deleted.

◆ Edit()

override PhaseInfo Ofcas.Lk.Api.Client.Core.Phase.Edit ( string  key,
object  value 
)
virtual

Edits an phase based on a key and a value.

Parameters
keyThe key of the value to be edited. See WellKnownEditKeys.Phase for possible edit keys.
valueThe value to be set.
Returns
Returns an info object of the edited phase.

Reimplemented from Ofcas.Lk.Api.Client.Core.CoreObjectFullyQualified< Project, PhaseInfo, Elevation, ElevationInfo >.

◆ GetChild()

override Elevation Ofcas.Lk.Api.Client.Core.Phase.GetChild ( ElevationInfo  elevationInfo)

Gets a Elevation based on a ElevationInfo.

Parameters
elevationInfoThe ElevationInfo of the Elevation to be returned.
Returns
Returns a Elevation based on the given ElevationInfo.

◆ GetChildren()

override IEnumerable<Elevation> Ofcas.Lk.Api.Client.Core.Phase.GetChildren ( IEnumerable< ElevationInfo childrenInfos = null)

Gets Elevations based on an ElevationInfos.

Parameters
childrenInfosThe ElevationInfos of the Elevations to be returned. If an empty list is given all Elevations of this Phase will be returned.
Returns
Returns a list of Elevations based on the given ElevationInfos.

◆ GetElevation()

Elevation Ofcas.Lk.Api.Client.Core.Phase.GetElevation ( ElevationInfo  elevationInfo)

This method is deprecated. Please use GetChild(ElevationInfo) instead.

◆ GetNextPositionNumber()

string Ofcas.Lk.Api.Client.Core.Phase.GetNextPositionNumber ( )

Retrieves the next available position number of this phase.

Returns
Returns the next available position number for this phase.

◆ IsChild()

bool Ofcas.Lk.Api.Client.Core.Phase.IsChild ( ElevationInfo  elevationInfo)
protected

Determines if the provided info is the info a child of this object.

Parameters
elevationInfo
Returns
Returns true if the info is the info a child of this obejct

◆ RestoreChild()

ElevationInfo Ofcas.Lk.Api.Client.Core.Phase.RestoreChild ( ElevationInfo  elevationInfo)

Restores an Elevation based on a ElevationInfo.

Parameters
elevationInfoThe ElevationInfo of the Elevation to be restored.
Returns
Returns the changed ElevationInfo.

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