public class ObjectiveFunctionLocation
extends java.lang.Object
This project was carried out at:
and supported byGenOpt Copyright (c) 1998-2021, The Regents of the University of California, through Lawrence Berkeley National Laboratory (subject to receipt of any required approvals from the U.S. Dept. of Energy). All rights reserved.
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
Delimiter
The delimiter of the objective function, or
null |
protected int |
firstCharAt
One-based index for the position where the first character of the delimiter starts,
or 0 if unspecified
|
protected java.lang.String |
Function
The function defining the objective function, or
null |
protected boolean |
IsFunction
Flag whether this instance is a function or not
|
private static java.lang.String |
LS
Line separator
|
protected java.lang.String |
Name
The name of the objective function
|
Constructor and Description |
---|
ObjectiveFunctionLocation(java.lang.String name,
java.lang.String delimiter,
int firstCharacterAt,
java.lang.String function)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDelimiter() |
int |
getFirstCharAt() |
java.lang.String |
getFunction() |
java.lang.String |
getName() |
boolean |
isFunction() |
private static final java.lang.String LS
protected java.lang.String Name
protected java.lang.String Delimiter
null
protected java.lang.String Function
null
protected int firstCharAt
protected boolean IsFunction
public ObjectiveFunctionLocation(java.lang.String name, java.lang.String delimiter, int firstCharacterAt, java.lang.String function)
delimiter
or function
must be
null
, but not both.name
- name of the functiondelimiter
- objective function delimiter, or null
pointerfirstCharacterAt
- one-based index for the position
where the first character of the delimiter starts,
or 0 if unspecifiedfunction
- string representation of the function, or null
pointer