Package jadex.rules.state.javaimpl
Class OAVObjectUsage
- java.lang.Object
-
- jadex.rules.state.javaimpl.OAVObjectUsage
-
public class OAVObjectUsage extends java.lang.Object
Struct 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 OAVAttributeType
attr
The attribute.protected boolean
external
External flag (i.e.protected java.lang.Object
object
The 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 boolean
equals(java.lang.Object obj)
Test if two objects are equal.OAVAttributeType
getAttribute()
Get the attribute.java.lang.Object
getObject()
Get the object.int
hashCode()
Generate the hash code.boolean
isExternal()
Get the external flag.void
setExternal(boolean external)
Set the external flag.java.lang.String
toString()
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:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
Test if two objects are equal.- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
Create a string representation.- Overrides:
toString
in classjava.lang.Object
-
-