Instance ======== .. java:package:: com.ampl :noindex: .. java:type:: public abstract class Instance> Represent an instance of a modelling entity :param : Type of the father entity Methods ------- .. java:method:: public T entity() :outertype: Instance :return: Get the algebraic entity this instance is part of .. java:method:: public String name() :outertype: Instance :return: The instance's name .. java:method:: @Override public String toString() :outertype: Instance Returns a string representation of the instance. For constraints and objective instances it is equivalent to the AMPL statement: .. parsed-literal:: expand instanceName; For set and variable instances see the documentation for the specific class.