Follow us on Twitter and LinkedIn to get the latest updates from the dev team!
Infrastructure class to enable the inheriting classes type-safe access to instances.
Constructor
Get the instance corresponding to a scalar entity.
IllegalStateException – if the entity has been deleted in the underlying AMPL interpreter
IllegalStateException
UnsupportedOperationException – if the entity is not scalar.
UnsupportedOperationException
The corresponding instance.
Get the instance corresponding to the specified key. See Access to instances and values for further information on how the key can be specified.
key – Key of the instance to be found.
IllegalArgumentException – if trying to access an instance with the wrong number of keys (see Entity.indexarity)
IllegalArgumentException
Entity.indexarity
The instance corresponding to the key, or null if the specified key is not found.
null
Get the instance corresponding to the specified tuple. See Access to instances and values for further information on how the key can be specified.
key – Key (in form of Tuple) of the instance to be found.
previous
Entity
next
Instance