Gridarta Editor
net.sf.gridarta.model.match.AttributeGameObjectMatcher Class Referenceabstract

An GameObjectMatcher that matches an attribute value. More...

+ Inheritance diagram for net.sf.gridarta.model.match.AttributeGameObjectMatcher:
+ Collaboration diagram for net.sf.gridarta.model.match.AttributeGameObjectMatcher:

Public Member Functions

boolean isMatching (@NotNull final GameObject<?, ?, ?> gameObject)
 Matches an GameObject. More...
 

Protected Member Functions

 AttributeGameObjectMatcher (@NotNull final Operation operation)
 Creates an. More...
 
abstract int compareValue (@NotNull GameObject<?, ?, ?> gameObject)
 Compares the attribute value of a given game object with the expected value. More...
 

Private Attributes

final Operation operation
 The operator to use. More...
 

Static Private Attributes

static final long serialVersionUID = 1L
 The serial version UID. More...
 

Detailed Description

An GameObjectMatcher that matches an attribute value.

Author
Christian Hujer
Andreas Kirschbaum

Definition at line 30 of file AttributeGameObjectMatcher.java.

Constructor & Destructor Documentation

◆ AttributeGameObjectMatcher()

net.sf.gridarta.model.match.AttributeGameObjectMatcher.AttributeGameObjectMatcher ( @NotNull final Operation  operation)
protected

Creates an.

.

Parameters
operationthe
Operator
to use

Definition at line 48 of file AttributeGameObjectMatcher.java.

References net.sf.gridarta.model.match.AttributeGameObjectMatcher.operation.

Member Function Documentation

◆ compareValue()

abstract int net.sf.gridarta.model.match.AttributeGameObjectMatcher.compareValue ( @NotNull GameObject<?, ?, ?>  gameObject)
abstractprotected

Compares the attribute value of a given game object with the expected value.

Parameters
gameObjectthe game object
Returns
<0, 0, or >0 depending on the comparison result

Referenced by net.sf.gridarta.model.match.AttributeGameObjectMatcher.isMatching().

+ Here is the caller graph for this function:

◆ isMatching()

boolean net.sf.gridarta.model.match.AttributeGameObjectMatcher.isMatching ( @NotNull final GameObject<?, ?, ?>  gameObject)

Matches an GameObject.

Parameters
gameObjectthe
GameObject
to match
Returns
true
if this matcher matches the given game object, otherwise
false

Implements net.sf.gridarta.model.match.GameObjectMatcher.

Definition at line 53 of file AttributeGameObjectMatcher.java.

References net.sf.gridarta.model.match.AttributeGameObjectMatcher.compareValue().

+ Here is the call graph for this function:

Member Data Documentation

◆ operation

final Operation net.sf.gridarta.model.match.AttributeGameObjectMatcher.operation
private

◆ serialVersionUID

final long net.sf.gridarta.model.match.AttributeGameObjectMatcher.serialVersionUID = 1L
staticprivate

The serial version UID.

Definition at line 35 of file AttributeGameObjectMatcher.java.


The documentation for this class was generated from the following file: