XPRSnamelist
- java.lang.Object
-
- com.dashoptimization.XPRSobject
-
- com.dashoptimization.XPRSnamelist
-
- All Implemented Interfaces:
-
java.lang.AutoCloseable
@Deprecated public class XPRSnamelist extends XPRSobject
Deprecated.Scheduled for removal since 40.00Class allowing access to a name list
-
-
Constructor Summary
Constructor Description XPRSnamelist()
Deprecated.Scheduled for removal since 40.00
-
Method Summary
Modifier and Type Method Description void
addMsgHandlerListener(XPRSmsgHandlerListener listener)
Deprecated.Add a listener for the MsgHandler callback.void
addMsgHandlerListener(XPRSmsgHandlerListener listener, int priority)
Deprecated.Add a listener for the MsgHandler callback.void
addMsgHandlerListener(XPRSmsgHandlerListener listener, java.lang.Object data)
Deprecated.Add a listener for the MsgHandler callback.void
addMsgHandlerListener(XPRSmsgHandlerListener listener, java.lang.Object data, int priority)
Deprecated.Add a listener for the MsgHandler callback.void
addNames(java.lang.String[] buf, int firstIndex)
Deprecated.Scheduled for removal since 40.00void
addNames(java.lang.String[] buf, int firstIndex, int lastIndex)
Deprecated.Scheduled for removal since 40.00void
close()
Deprecated.Deallocates resources associated with an XPRSobject.void
copyNames(XPRSnamelist src)
Deprecated.Scheduled for removal since 40.00int
findName(java.lang.String name)
Deprecated.since 40.00void
findName(java.lang.String name, IntHolder p_index)
Deprecated.Scheduled for removal since 40.00java.lang.String
getLastError()
Deprecated.Scheduled for removal since 40.00java.lang.String
getLastError(IntHolder p_msgcode)
Deprecated.Scheduled for removal since 40.00int
getMaxNameLen()
Deprecated.Scheduled for removal since 40.00int
getNameCount()
Deprecated.Scheduled for removal since 40.00java.lang.String[]
getNames()
Deprecated.Scheduled for removal since 40.00java.lang.String[]
getNames(int firstIndex, int lastIndex)
Deprecated.Scheduled for removal since 40.00void
getNames(int padlen, java.lang.String[] buf, int firstIndex, int lastIndex)
Deprecated.Scheduled for removal since 40.00void
getNames(java.lang.String[] buf, int firstIndex, int lastIndex)
Deprecated.Scheduled for removal since 40.00void
removeMsgHandlerListener()
Deprecated.void
removeMsgHandlerListener(XPRSmsgHandlerListener listener)
Deprecated.Removes the given MsgHandler listener from the object.void
removeMsgHandlerListener(XPRSmsgHandlerListener listener, java.lang.Object data)
Deprecated.Removes the given MsgHandler listener with the given data value from the object.void
removeMsgHandlerListeners()
Deprecated.Remove all listeners for the MsgHandler callbackvoid
removeNames(int first, int last)
Deprecated.Scheduled for removal since 40.00-
Methods inherited from class com.dashoptimization.XPRSobject
addMsgHandlerListener, addMsgHandlerListener, destroy, isDestroyed
-
-
-
-
Constructor Detail
-
XPRSnamelist
@Deprecated public XPRSnamelist() throws XPRSexception
Deprecated.Scheduled for removal since 40.00Creates a new name list managed by the optimizer. XPRS.Init must have been called first.- Throws:
-
XPRSexception
-
-
Method Detail
-
getNames
@Deprecated public void getNames(int padlen, java.lang.String[] buf, int firstIndex, int lastIndex) throws XPRSexception
Deprecated.Scheduled for removal since 40.00- Throws:
-
XPRSexception
-
getNames
@Deprecated public void getNames(java.lang.String[] buf, int firstIndex, int lastIndex) throws XPRSexception
Deprecated.Scheduled for removal since 40.00- Throws:
-
XPRSexception
-
getNames
@Deprecated public java.lang.String[] getNames(int firstIndex, int lastIndex) throws XPRSexception
Deprecated.Scheduled for removal since 40.00- Throws:
-
XPRSexception
-
getNames
@Deprecated public java.lang.String[] getNames() throws XPRSexception
Deprecated.Scheduled for removal since 40.00- Throws:
-
XPRSexception
-
addNames
@Deprecated public void addNames(java.lang.String[] buf, int firstIndex, int lastIndex) throws XPRSexception
Deprecated.Scheduled for removal since 40.00- Throws:
-
XPRSexception
-
addNames
@Deprecated public void addNames(java.lang.String[] buf, int firstIndex) throws XPRSexception
Deprecated.Scheduled for removal since 40.00- Throws:
-
XPRSexception
-
close
public void close()
Deprecated.Description copied from class:XPRSobject
Deallocates resources associated with an XPRSobject.- Specified by:
-
close
in interfacejava.lang.AutoCloseable
- Specified by:
-
close
in classXPRSobject
-
getNameCount
@Deprecated public int getNameCount() throws XPRSexception
Deprecated.Scheduled for removal since 40.00TheXPRS_nml_*
functions provide a simple, generic interface to lists of names, which may be names of rows/columns on a problem or may be a list of arbitrary names provided by the user.XPRS_nlm_getnamecount
returns the number of names in the namelist.- Returns:
- The requested information.
- Throws:
-
XPRSexception
-
getMaxNameLen
@Deprecated public int getMaxNameLen() throws XPRSexception
Deprecated.Scheduled for removal since 40.00TheXPRS_nml_*
functions provide a simple, generic interface to lists of names, which may be names of rows/columns on a problem or may be a list of arbitrary names provided by the user.nml_GetMaxNameLen
returns the length of the longest name in the namelist.- Returns:
- The requested information.
- Throws:
-
XPRSexception
-
removeNames
@Deprecated public void removeNames(int first, int last) throws XPRSexception
Deprecated.Scheduled for removal since 40.00TheXPRS_nml_*
functions provide a simple, generic interface to lists of names, which may be names of rows/columns on a problem or may be a list of arbitrary names provided by the user.nml_RemoveNames
will remove the specified names from the name list. Any subsequent names will be moved down to replace the removed names.- Parameters:
-
first
- The index of the first name to remove. Note that indices for names in a name list always start from 0. -
last
- The index of the last name to remove. - Throws:
-
XPRSexception
-
findName
@Deprecated public void findName(java.lang.String name, IntHolder p_index) throws XPRSexception
Deprecated.Scheduled for removal since 40.00TheXPRS_nml_*
functions provide a simple, generic interface to lists of names, which may be names of rows/columns on a problem or may be a list of arbitrary names provided by the user.nml_FindName
returns the index of the given name in the given name list.- Parameters:
-
name
- Null-terminated string containing the name for which to search. -
p_index
- Pointer to variable in which the index of the name is returned, or in which is returned -1 if the name is not found in the namelist. - Throws:
-
XPRSexception
-
findName
@Deprecated public int findName(java.lang.String name) throws XPRSexception
Deprecated.since 40.00Convenience wrapper forfindName(String, com.dashoptimization.IntHolder)
.- Returns:
-
The value that would be returned by
findName(String, com.dashoptimization.IntHolder)
as output parameter. - Throws:
-
XPRSexception
- See Also:
-
findName(String, com.dashoptimization.IntHolder)
-
copyNames
@Deprecated public void copyNames(XPRSnamelist src) throws XPRSexception
Deprecated.Scheduled for removal since 40.00TheXPRS_nml_*
functions provide a simple, generic interface to lists of names, which may be names of rows/columns on a problem or may be a list of arbitrary names provided by the user.nml_CopyNames
allows you to copy all the names from one name list to another. As name lists representing row/column names cannot be modified,nml_CopyNames
will be most often used to copy such names to a namelist where they can be modified, for some later use.- Parameters:
-
src
- The namelist object from which all the names should be copied. - Throws:
-
XPRSexception
-
getLastError
@Deprecated public java.lang.String getLastError() throws XPRSexception
Deprecated.Scheduled for removal since 40.00Returns the last error encountered during a call to a namelist object.- Specified by:
-
getLastError
in classXPRSobject
- Returns:
- The requested information.
- Throws:
-
XPRSexception
-
getLastError
@Deprecated public java.lang.String getLastError(IntHolder p_msgcode) throws XPRSexception
Deprecated.Scheduled for removal since 40.00Returns the last error encountered during a call to a namelist object.- Parameters:
-
p_msgcode
- Variable in which the error code will be returned. Can be null if not required. - Returns:
- The requested information.
- Throws:
-
XPRSexception
-
addMsgHandlerListener
public void addMsgHandlerListener(XPRSmsgHandlerListener listener) throws XPRSexception
Deprecated.Add a listener for the MsgHandler callback. Note that an object can have multiple MsgHandler listeners.- Specified by:
-
addMsgHandlerListener
in classXPRSobject
- Parameters:
-
listener
- The listener to which the event will be dispatched. (If null, all MsgHandler listeners will be removed.) - Throws:
-
XPRSexception
-
addMsgHandlerListener
public void addMsgHandlerListener(XPRSmsgHandlerListener listener, java.lang.Object data) throws XPRSexception
Deprecated.Add a listener for the MsgHandler callback. Note that an object can have multiple MsgHandler listeners.- Specified by:
-
addMsgHandlerListener
in classXPRSobject
- Parameters:
-
listener
- The listener to which the event will be dispatched. (If null, all MsgHandler listeners will be removed.) -
data
- An additional object which will be passed down to the callback function - Throws:
-
XPRSexception
-
addMsgHandlerListener
public void addMsgHandlerListener(XPRSmsgHandlerListener listener, int priority) throws XPRSexception
Deprecated.Add a listener for the MsgHandler callback. Note that an object can have multiple MsgHandler listeners.- Parameters:
-
listener
- The listener to which the event will be dispatched. (If null, all MsgHandler listeners will be removed.) -
priority
- Listeners with higher priorities are called first - Throws:
-
XPRSexception
-
addMsgHandlerListener
public void addMsgHandlerListener(XPRSmsgHandlerListener listener, java.lang.Object data, int priority) throws XPRSexception
Deprecated.Add a listener for the MsgHandler callback. Note that an object can have multiple MsgHandler listeners.- Parameters:
-
listener
- The listener to which the event will be dispatched. (If null, all MsgHandler listeners will be removed.) -
data
- An additional object which will be passed down to the callback function -
priority
- Listeners with higher priorities are called first - Throws:
-
XPRSexception
-
removeMsgHandlerListener
public void removeMsgHandlerListener(XPRSmsgHandlerListener listener) throws XPRSexception
Deprecated.Removes the given MsgHandler listener from the object.- Parameters:
-
listener
- The listener to remove. - Throws:
-
XPRSexception
-
removeMsgHandlerListener
public void removeMsgHandlerListener(XPRSmsgHandlerListener listener, java.lang.Object data) throws XPRSexception
Deprecated.Removes the given MsgHandler listener with the given data value from the object.- Parameters:
-
listener
- The listener to remove. -
data
- The user data to remove. - Throws:
-
XPRSexception
-
removeMsgHandlerListener
@Deprecated public void removeMsgHandlerListener() throws XPRSexception
Deprecated.Removes all MsgHandler listeners from the object. @deprecated as of Xpress 7.1, please useremoveMsgHandlerListener(XPRSmsgHandlerListener)
orremoveMsgHandlerListeners()
- Specified by:
-
removeMsgHandlerListener
in classXPRSobject
- Throws:
-
XPRSexception
-
removeMsgHandlerListeners
public void removeMsgHandlerListeners() throws XPRSexception
Deprecated.Remove all listeners for the MsgHandler callback- Throws:
-
XPRSexception
-
-
© 2001-2025 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.