ReinforcementService
Canonical path: NemAll_Python_Reinforcement.ReinforcementService
Reinforcement service
Classes:
-
BarShapeCodeStandard–Standard for the bar shape code
Methods:
-
GetACIBarMark–Get the bar mark
-
GetACIPlacementBarMark–Get the bar mark for a placement
-
GetBarPositionData–Get the bar position data
-
GetBarShapeCode–Get the bar shape code
-
ModifyLinearBarPlacements–Modify linear bar placements
BarShapeCodeStandard
Canonical path: NemAll_Python_Reinforcement.ReinforcementService.BarShapeCodeStandard
Bases: Enum
Standard for the bar shape code
Methods:
-
__getitem__–get the item for a key
__getitem__
__getitem__(key: str | int | float) -> BarShapeCodeStandard
get the item for a key
Parameters:
-
key(str | int | float) –value key
Returns:
-
BarShapeCodeStandard–value for the key
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:
-
elements(BaseElementAdapterList) –List with the elements
Returns:
-
list–List with the bar position data
GetBarShapeCode
staticmethod
GetBarShapeCode(
barsDefinitionElement: BaseElementAdapter,
barShapeCopdeStandard: BarShapeCodeStandard,
) -> tuple
Get the bar shape code
Parameters:
-
barsDefinitionElement(BaseElementAdapter) –Bars definition element
-
barShapeCopdeStandard(BarShapeCodeStandard) –Standard for the bar shape code
Returns:
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