| 218 | } |
| 219 | |
| 220 | unsigned int BehaviorTreeDataModel::nPorts(QtNodes::PortType portType) const |
| 221 | { |
| 222 | if( portType == QtNodes::PortType::Out) |
| 223 | { |
| 224 | if( nodeType() == NodeType::ACTION || nodeType() == NodeType::CONDITION ) |
| 225 | { |
| 226 | return 0; |
| 227 | } |
| 228 | else{ |
| 229 | return 1; |
| 230 | } |
| 231 | } |
| 232 | else if( portType == QtNodes::PortType::In ) |
| 233 | { |
| 234 | return (_model.registration_ID == "Root") ? 0 : 1; |
| 235 | } |
| 236 | return 0; |
| 237 | } |
| 238 | |
| 239 | NodeDataModel::ConnectionPolicy BehaviorTreeDataModel::portOutConnectionPolicy(QtNodes::PortIndex) const |
| 240 | { |
nothing calls this directly
no outgoing calls
no test coverage detected