|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.topcoder.shared.problem.BaseElement
|
+--com.topcoder.shared.problem.Constraint
|
+--com.topcoder.shared.problem.SizeConstraint
The SizeConstraint class is for constraints related to the
size (length) of a parameter. The SizeConstraint hold information
as to which dimension the size refers to, the name of the parameter,
and what the size is. This class is not currently being used but is
reserved for future use.
MaxSizeConstraint,
MinSizeConstraint,
Serialized Form| Field Summary | |
protected int |
dimension
The dimension the size applies to. |
protected java.lang.String |
paramName
The parameter name. |
protected int |
size
The size. |
| Constructor Summary | |
SizeConstraint()
Empty constructor required by custom serialization. |
|
SizeConstraint(int size,
int dimension,
java.lang.String paramName)
Constructs the Size constraint from the given parms. |
|
| Method Summary | |
void |
customReadObject(com.topcoder.shared.netCommon.CSReader reader)
Custom serializiation |
void |
customWriteObject(com.topcoder.shared.netCommon.CSWriter writer)
Custom serializiation |
int |
getDimension()
Return the dimension the size applies to. |
java.lang.String |
getParamName()
Returns the parameter name. |
int |
getSize()
Return the size. |
| Methods inherited from class com.topcoder.shared.problem.Constraint |
encodeHTML, getRenderer, setRenderer |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.topcoder.shared.problem.Element |
getRenderer, setRenderer, toXML |
| Field Detail |
protected int size
protected int dimension
protected java.lang.String paramName
| Constructor Detail |
public SizeConstraint(int size,
int dimension,
java.lang.String paramName)
size - the size.dimension - the dimension the size applies to.paramName - the parameter name.public SizeConstraint()
| Method Detail |
public int getSize()
public int getDimension()
public java.lang.String getParamName()
public void customWriteObject(com.topcoder.shared.netCommon.CSWriter writer)
throws java.io.IOException
customWriteObject in interface ElementcustomWriteObject in class Constraintwriter - the writer to write to.
java.io.IOException - if an I/O error has occurred in the stream that backs the writer.
public void customReadObject(com.topcoder.shared.netCommon.CSReader reader)
throws java.io.IOException,
java.io.ObjectStreamException
customReadObject in interface ElementcustomReadObject in class Constraintreader - the reader to read from.
java.io.ObjectStreamException - if the information that is read is inconsistent (stream corrupted
or incompatibility between writers and readers)
java.io.IOException - if an I/O error has occurred in the stream that backs the reader.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||