public class ContiguousDidAllocationPolicy extends DidAllocationPolicy implements com.exalead.util.Checkable, java.io.Serializable
DidAllocationPolicy.Transformer<T>, DidAllocationPolicy.Visitor
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_INCREASING |
static int |
DEFAULT_STARTING_POINT |
java.lang.Integer |
endingPoint |
boolean |
increasing |
int |
startingPoint |
Constructor and Description |
---|
ContiguousDidAllocationPolicy() |
ContiguousDidAllocationPolicy(ContiguousDidAllocationPolicy o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
<T> T |
accept(DidAllocationPolicy.Transformer<T> transformer,
T[] t) |
void |
accept(DidAllocationPolicy.Visitor visitor) |
void |
check(boolean deep,
java.lang.String errorContext)
Checks this ContiguousDidAllocationPolicy.
|
static ContiguousDidAllocationPolicy |
fromString(java.lang.String s)
String representation of this ContiguousDidAllocationPolicy.
|
java.lang.Integer |
getEndingPoint()
End point of the allocation.
|
int |
getStartingPoint()
Start point of the allocation.
|
boolean |
isIncreasing()
Assign DIDs in an increasing order.
|
ContiguousDidAllocationPolicy |
makeCopy()
Creates and returns a deep copy of this ContiguousDidAllocationPolicy.
|
static ContiguousDidAllocationPolicy |
readFrom(java.io.InputStream is)
Read this ContiguousDidAllocationPolicy from an XML fragment.
|
void |
setEndingPoint(java.lang.Integer endingPoint)
End point of the allocation.
|
void |
setIncreasing(boolean increasing)
Assign DIDs in an increasing order.
|
void |
setStartingPoint(int startingPoint)
Start point of the allocation.
|
java.lang.String |
toString()
String representation of this ContiguousDidAllocationPolicy.
|
ContiguousDidAllocationPolicy |
withEndingPoint(java.lang.Integer endingPoint) |
ContiguousDidAllocationPolicy |
withIncreasing(boolean increasing) |
ContiguousDidAllocationPolicy |
withIncreasing(java.lang.Boolean increasing) |
ContiguousDidAllocationPolicy |
withStartingPoint(int startingPoint) |
ContiguousDidAllocationPolicy |
withStartingPoint(java.lang.Integer startingPoint) |
void |
writeTo(java.io.OutputStream os)
Write this ContiguousDidAllocationPolicy as an XML fragment
|
public boolean increasing
public static final boolean DEFAULT_INCREASING
public int startingPoint
public static final int DEFAULT_STARTING_POINT
public java.lang.Integer endingPoint
public ContiguousDidAllocationPolicy()
public ContiguousDidAllocationPolicy(ContiguousDidAllocationPolicy o)
public void setIncreasing(boolean increasing)
public boolean isIncreasing()
public ContiguousDidAllocationPolicy withIncreasing(boolean increasing)
public ContiguousDidAllocationPolicy withIncreasing(java.lang.Boolean increasing)
public void setStartingPoint(int startingPoint)
public int getStartingPoint()
public ContiguousDidAllocationPolicy withStartingPoint(int startingPoint)
public ContiguousDidAllocationPolicy withStartingPoint(java.lang.Integer startingPoint)
public void setEndingPoint(java.lang.Integer endingPoint)
public java.lang.Integer getEndingPoint()
public ContiguousDidAllocationPolicy withEndingPoint(java.lang.Integer endingPoint)
public ContiguousDidAllocationPolicy makeCopy()
makeCopy
in class DidAllocationPolicy
public static ContiguousDidAllocationPolicy readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
writeTo
in class DidAllocationPolicy
javax.xml.bind.JAXBException
java.io.IOException
public static ContiguousDidAllocationPolicy fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class DidAllocationPolicy
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
check
in class DidAllocationPolicy
com.exalead.util.TypedException
public void accept(DidAllocationPolicy.Visitor visitor) throws com.exalead.util.TypedException
accept
in class DidAllocationPolicy
com.exalead.util.TypedException
public <T> T accept(DidAllocationPolicy.Transformer<T> transformer, T[] t) throws com.exalead.util.TypedException
accept
in class DidAllocationPolicy
com.exalead.util.TypedException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.