Package jadex.rules.state.javaimpl
Class OAVObjectUsage
- java.lang.Object
-
- jadex.rules.state.javaimpl.OAVObjectUsage
-
public class OAVObjectUsage extends java.lang.ObjectStruct for storing an object usage. Identifies that a defined value (not part of this usage) is used in the defined object in the defined attribute.
-
-
Field Summary
Fields Modifier and Type Field Description protected OAVAttributeTypeattrThe attribute.protected booleanexternalExternal flag (i.e. referencing object is only externally referenced and no longer in state).protected java.lang.ObjectobjectThe object.
-
Constructor Summary
Constructors Constructor Description OAVObjectUsage(java.lang.Object object, OAVAttributeType attr)Create a new object usage.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)Test if two objects are equal.OAVAttributeTypegetAttribute()Get the attribute.java.lang.ObjectgetObject()Get the object.inthashCode()Generate the hash code.booleanisExternal()Get the external flag.voidsetExternal(boolean external)Set the external flag.java.lang.StringtoString()Create a string representation.
-
-
-
Field Detail
-
object
protected java.lang.Object object
The object.
-
attr
protected OAVAttributeType attr
The attribute.
-
external
protected boolean external
External flag (i.e. referencing object is only externally referenced and no longer in state).
-
-
Constructor Detail
-
OAVObjectUsage
public OAVObjectUsage(java.lang.Object object, OAVAttributeType attr)Create a new object usage.
-
-
Method Detail
-
getObject
public java.lang.Object getObject()
Get the object.
-
getAttribute
public OAVAttributeType getAttribute()
Get the attribute.
-
isExternal
public boolean isExternal()
Get the external flag.
-
setExternal
public void setExternal(boolean external)
Set the external flag.
-
hashCode
public int hashCode()
Generate the hash code.- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
Test if two objects are equal.- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
Create a string representation.- Overrides:
toStringin classjava.lang.Object
-
-