public class Segment extends Entity implements HasExtensions, HasPredicate
Java class for anonymous complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element ref="{http://www.dmg.org/PMML-4_3}Extension" maxOccurs="unbounded" minOccurs="0"/>
<group ref="{http://www.dmg.org/PMML-4_3}PREDICATE"/>
<group ref="{http://www.dmg.org/PMML-4_3}MODEL-ELEMENT"/>
</sequence>
<attribute name="id" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="weight" type="{http://www.dmg.org/PMML-4_3}NUMBER" default="1" />
</restriction>
</complexContent>
</complexType>
| Constructor and Description |
|---|
Segment() |
| Modifier and Type | Method and Description |
|---|---|
VisitorAction |
accept(Visitor visitor) |
Segment |
addExtensions(Extension... extensions) |
List<Extension> |
getExtensions()
Gets the value of the extensions property.
|
String |
getId()
Gets the value of the id property.
|
Model |
getModel()
Gets the value of the model property.
|
Predicate |
getPredicate()
Gets the value of the predicate property.
|
Double |
getWeight()
Gets the value of the weight property.
|
boolean |
hasExtensions() |
Segment |
setId(String id)
Sets the value of the id property.
|
Segment |
setModel(Model model)
Sets the value of the model property.
|
Segment |
setPredicate(Predicate predicate)
Sets the value of the predicate property.
|
Segment |
setWeight(Double weight)
Sets the value of the weight property.
|
getLocator, setLocator, traverse, traverse, traverse, traverse, traverseMixedpublic String getId()
public Double getWeight()
Doublepublic Segment setWeight(Double weight)
weight - allowed object is
Doublepublic List<Extension> getExtensions()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the extensions property.
For example, to add a new item, do as follows:
getExtensions().add(newItem);
Objects of the following type(s) are allowed in the list
Extension
getExtensions in interface HasExtensionspublic Predicate getPredicate()
getPredicate in interface HasPredicateSimplePredicate
CompoundPredicate
SimpleSetPredicate
True
Falsepublic Segment setPredicate(Predicate predicate)
setPredicate in interface HasPredicatepredicate - allowed object is
SimplePredicate
CompoundPredicate
SimpleSetPredicate
True
Falsepublic Model getModel()
AssociationModel
BayesianNetworkModel
BaselineModel
ClusteringModel
GaussianProcessModel
GeneralRegressionModel
MiningModel
NaiveBayesModel
NearestNeighborModel
NeuralNetwork
RegressionModel
RuleSetModel
SequenceModel
Scorecard
SupportVectorMachineModel
TextModel
TimeSeriesModel
TreeModelpublic Segment setModel(Model model)
model - allowed object is
AssociationModel
BayesianNetworkModel
BaselineModel
ClusteringModel
GaussianProcessModel
GeneralRegressionModel
MiningModel
NaiveBayesModel
NearestNeighborModel
NeuralNetwork
RegressionModel
RuleSetModel
SequenceModel
Scorecard
SupportVectorMachineModel
TextModel
TimeSeriesModel
TreeModelpublic boolean hasExtensions()
hasExtensions in interface HasExtensionspublic VisitorAction accept(Visitor visitor)
Copyright © 2016 University of Tartu. All rights reserved.