Gets the placementSegment value for this ProductSegmentation.

@return placementSegment   * The placement targeting segmentation.

<p>This attribute is optional.
338265
public com.google.api.ads.admanager.axis.v201811.PlacementTargeting getPlacementSegment() {
        return placementSegment;
    }
615756
public MACAddressSection toOUIPrefixBlock() {
		int ouiSegmentCount = getOUISegmentCount();
		int segmentCount = getSegmentCount();
		Integer currentPref = getPrefixLength();
		int newPref = ouiSegmentCount << 3;//ouiSegmentCount * MACAddress.BITS_PER_SEGMENT
		boolean createNew;
		if(!(createNew = (currentPref == null || currentPref > newPref))) {
			newPref = currentPref;
			for(int i = ouiSegmentCount; i < segmentCount; i++) {
				MACAddressSegment segment = getSegment(i);
				if(!segment.isFullRange()) {
					createNew = true;
					break;
				}
			}
		}
		if(createNew) {
			MACAddressCreator creator = getAddressCreator();
			MACAddressSegment allRangeSegment = creator.createRangeSegment(0, MACAddress.MAX_VALUE_PER_SEGMENT);
			MACAddressSegment newSegments[] = setPrefixedSegments(
					getNetwork(),
					newPref,
					getSegments(), //this clones
					MACAddress.BITS_PER_SEGMENT,
					MACAddress.BYTES_PER_SEGMENT,
					creator, 
					(seg, prefixLength) -> (prefixLength == 0) ? allRangeSegment : seg);			
			MACAddressSection result = creator.createSectionInternal(newSegments);
			result.assignPrefixLength(newPref);
			return result;
		}
		return this;
	}
134201
@Pure
	public Point2d getPosition2D() {
		final Rectangle2d b = getBoundingBox();
		if (b == null) {
			return null;
		}
		return new Point2d(b.getCenterX(), b.getCenterY());
	}
1323608
String getPath() {
    StringBuilder result = new StringBuilder();

    boolean first = true;
    for (String part : getSegments()) {
      if (first) {
        result.append(part);
        first = false;
      } else {
        result.append("/").append(part);
      }
    }

    return result.toString();
  }
844358
public function getCustomerSegment()
    {
        $segment = new Varien_Object();

        $segmentValues = $this->_getSegmentValues();

        foreach ($segmentValues as $field => $configCallbackPair) {
            if (is_array($configCallbackPair) && Mage::getStoreConfigFlag($configCallbackPair[0])) {
                $segment->setData($field, $configCallbackPair[1]());
            } elseif (is_string($configCallbackPair)) {
                $segment->setData($field, $configCallbackPair);
            }
        }

        Mage::dispatchEvent('ecomdev_varnish_customer_segment', array('segment' => $segment));
        
        return $segment->getData();
    }
416575
public Partition getAutomorphismPartition() {
        final int n = group.getSize();
        final DisjointSetForest forest = new DisjointSetForest(n);
        group.apply(new PermutationGroup.Backtracker() {

            boolean[]       inOrbit      = new boolean[n];
            private int     inOrbitCount = 0;
            private boolean isFinished;

            @Override
            public boolean isFinished() {
                return isFinished;
            }

            @Override
            public void applyTo(Permutation p) {
                for (int elementX = 0; elementX < n; elementX++) {
                    if (inOrbit[elementX]) {
                        continue;
                    } else {
                        int elementY = p.get(elementX);
                        while (elementY != elementX) {
                            if (!inOrbit[elementY]) {
                                inOrbitCount++;
                                inOrbit[elementY] = true;
                                forest.makeUnion(elementX, elementY);
                            }
                            elementY = p.get(elementY);
                        }
                    }
                }
                if (inOrbitCount == n) {
                    isFinished = true;
                }
            }
        });

        // convert to a partition
        Partition partition = new Partition();
        for (int[] set : forest.getSets()) {
            partition.addCell(set);
        }

        // necessary for comparison by string
        partition.order();
        return partition;
    }
1178342
public Segment toSegment()
    {
        return new Segment()
        {
            @Override
            protected List<Term> segSentence(char[] sentence)
            {
                List<String> wordList = segment(new String(sentence));
                List<Term> termList = new LinkedList<Term>();
                for (String word : wordList)
                {
                    termList.add(new Term(word, null));
                }
                return termList;
            }
        }.enableCustomDictionary(false);
    }
985298
public function getPlacement()
    {
        if (($parent = $this->getParent()) && $parent->Placement) {
            return $parent->Placement;
        }
        
        return $this->config()->default_placement;
    }
20975
public com.google.api.ads.adwords.axis.v201809.cm.ProductBiddingCategory getDimensionValue() {
        return dimensionValue;
    }
551792
public IVarDef.Position getPosition()
    {
    if( position_ == null)
      {
      setPosition( new Position( getParent(), seqNum_));
      }
    
    return position_;
    }
694471
public static String getSegmentName(int segmentType)
    {
        String segmentName = "(Unknown segment type)";

        segmentName = segValues.get(segmentType);

        if (segmentName == null)
            segmentName = "(Unknown segment type)";

        return segmentName;
    }
1054001
public java.util.List<PlacementStrategy> getPlacementStrategy() {
        if (placementStrategy == null) {
            placementStrategy = new com.amazonaws.internal.SdkInternalList<PlacementStrategy>();
        }
        return placementStrategy;
    }
149240
@Override
    public AreaTree segmentPage()
    {
        try
        {
            setAreaTree(null);
            execInternal("default_segm.js");
        } catch (ScriptException e) {
            log.error("Couldn't execute default segmentation script: " + e.getMessage());
        }
        treesCompleted();
        return getAreaTree();
    }
815746
protected String determineSegmentValue(Properties params) {
		String segmentValue = params.getProperty( SEGMENT_VALUE_PARAM );
		if ( StringHelper.isEmpty( segmentValue ) ) {
			segmentValue = determineDefaultSegmentValue( params );
		}
		return segmentValue;
	}
38403
Segment getSegment(int vertex) {
		if (m_segments != null) {
			int vindex = getVertexIndex(vertex);
			return m_segments.get(vindex);
		}
		return null;
	}
1368597
public com.google.api.ads.admanager.axis.v201811.TargetPlatform getTargetPlatform() {
        return targetPlatform;
    }
589775
public int getOffsetToStart() {
        if (getChildCount() == 0) return -1;

        final View view = getChildAt(0);

        if (view == null) {
            //in some conditions, for exapmle, calling this method when outter activity destroy, may cause npe
            return -1;
        }

        int position = getPosition(view);
        final int idx = findRangeLength(Range.create(position, position));
        if (idx < 0 || idx >= mRangeLengths.size()) {
            return -1;
        }

        int offset = -mOrientationHelper.getDecoratedStart(view);
        for (int i = 0; i < idx; i++) {
            Pair<Range<Integer>, Integer> pair = mRangeLengths.get(i);
            if (pair != null) {
                offset += pair.second;
            }
        }

        return offset;
    }