> For the complete documentation index, see [llms.txt](https://elacity.gitbook.io/elacity-sdks/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://elacity.gitbook.io/elacity-sdks/protocol/v2.0/references/modules/operativefactoryselectable.md).

# OperativeFactorySelectable

Abstract contract defining basic operative types and factory selection mechanism.

*Inheriting contracts must implement `_getOperativeFactory` to route to correct factories.*

## OP\_TYPE\_FREE

```solidity
uint16 OP_TYPE_FREE
```

Type ID representing a Free Operative

## OP\_TYPE\_BUY

```solidity
uint16 OP_TYPE_BUY
```

Type ID representing a Buy Operative

## OP\_TYPE\_BUYSELL

```solidity
uint16 OP_TYPE_BUYSELL
```

Type ID representing a Buy\&Sell Operative

## OP\_TYPE\_PPV

```solidity
uint16 OP_TYPE_PPV
```

Type ID representing a Pay-Per-View (PPV) Operative

## OP\_TYPE\_RENT

```solidity
uint16 OP_TYPE_RENT
```

Type ID representing a Rent Operative

## \_getOperativeFactory

```solidity
function _getOperativeFactory(uint16 _opType) internal view virtual returns (address)
```

Retrieves the address of the factory corresponding to the given operative type.

*Must be implemented by child contracts to provide registry or router-based lookups.*

### Parameters

| Name     | Type   | Description                        |
| -------- | ------ | ---------------------------------- |
| \_opType | uint16 | The type of the operative factory. |

### Return Values

| Name | Type    | Description                           |
| ---- | ------- | ------------------------------------- |
| \[0] | address | The address of the operative factory. |
