Skip to content

ReinforcementService

Canonical path: NemAll_Python_Reinforcement.ReinforcementService

Reinforcement service

Classes:

Methods:

BarShapeCodeStandard

Canonical path: NemAll_Python_Reinforcement.ReinforcementService.BarShapeCodeStandard

Bases: Enum

Standard for the bar shape code

Methods:

__getitem__

__getitem__(key: str | int | float) -> BarShapeCodeStandard

get the item for a key

Parameters:

  • key (str | int | float) –

    value key

Returns:

GetACIBarMark staticmethod

GetACIBarMark(
    barsDefinitionElement: BaseElementAdapter, showIndex: bool
) -> list

Get the bar mark

Parameters:

  • barsDefinitionElement (BaseElementAdapter) –

    Bars definition element

  • showIndex (bool) –

    Show the index

Returns:

  • list

    bar mark for ACI

GetACIPlacementBarMark staticmethod

GetACIPlacementBarMark(
    barsPlacementElement: BaseElementAdapter, showIndex: bool
) -> tuple

Get the bar mark for a placement

Parameters:

  • barsPlacementElement (BaseElementAdapter) –

    Bars placement element

  • showIndex (bool) –

    Show the index

Returns:

  • tuple

    tuple(bar mark for ACI, bar count)

GetBarPositionData staticmethod

GetBarPositionData(elements: BaseElementAdapterList) -> list

Get the bar position data

Parameters:

Returns:

  • list

    List with the bar position data

GetBarShapeCode staticmethod

GetBarShapeCode(
    barsDefinitionElement: BaseElementAdapter,
    barShapeCopdeStandard: BarShapeCodeStandard,
) -> tuple

Get the bar shape code

Parameters:

Returns:

  • tuple

    shape code count, list of (shape codes, bar length), list of (segment name, segment lengths)) for ACI

  • tuple

    shape code count, list of shape codes, list of lengths) for all other

ModifyLinearBarPlacements staticmethod

ModifyLinearBarPlacements(
    elements: BaseElementAdapterList,
    componentfactor: int = 1,
    layerfactor: int = 1,
    barcount: int = 1,
    bardistance: float = 150.0,
    inputpriority: int = 0,
) -> int

Modify linear bar placements

Parameters:

  • elements (BaseElementAdapterList) –

    List of elements to modify

  • componentfactor (int, default: 1 ) –

    Factor for componenets

  • layerfactor (int, default: 1 ) –

    Factor for layer

  • barcount (int, default: 1 ) –

    Count of bars in the placement

  • bardistance (float, default: 150.0 ) –

    Disance of bars in the placement

  • inputpriority (int, default: 0 ) –

    Priority of the input 0-barcount / 1-bardistance

Placeholder