You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 5, 2021. It is now read-only.
The @getter is from lombok, so you need to have the lombodk dependency, but set it to optional since it's not used by other projects.
it also requires the getModel() to return a casted GraphModel (and the constructor to require a graphmodel)
This would actually create a meaninglessvariable, and also a accessor that checks and instantiates that variable when called in a synced block.
The modification is made at compile time, lombock rewrites the instruction tree. The only issue is that the sources won't show it, but your exported jar will actually contain the modified instructions.
if you want the accessors to keep the variable names (so nbNodes() instead of getNbNodes() ) you can add @accessors(fluent=true) to the class or the field.
The text was updated successfully, but these errors were encountered:
Which will generate null-check in the constructor, and the getUB() and getLB() methods which will keep the JDoc of the field (nothing more, no lazy=true since it's required from constructor so no meaningless variable).
glelouet
changed the title
[imporbvement] using lombok to auto generate the variables in the graph
[improvement] using lombok to auto generate the variables in the graph
Feb 12, 2021
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Many methods in IGraphVarFactory translate a graph into a (set of) Vars.
Example: IntVar IGraphVarFactory.nbLoops(GraphVar)
The [Directed|Undirected]?GraphVar could propose this access, that is with the GraphVar parameter being this.
typically the corresponding field would be (in GraphVar)
The other trivial methods could be
if you want the accessors to keep the variable names (so nbNodes() instead of getNbNodes() ) you can add @accessors(fluent=true) to the class or the field.
The text was updated successfully, but these errors were encountered: