Ticket #667 (closed Enhancement: fixed)

Opened 6 years ago

Last modified 6 years ago

Core API: Association should have getPlayer() methods

Reported by: jri Owned by: jri
Priority: Major Milestone: Release 4.4
Component: DeepaMehta Standard Distribution Version: 4.3
Keywords: Cc: dgf, Malte, carolina
Complexity: 3 Area: Application Framework / API
Module: deepamehta-core

Description (last modified by jri) (diff)

The Association interface should provide generic player accessors:

DeepaMehtaObject getPlayer1();
DeepaMehtaObject getPlayer2();

Change History

comment:1 Changed 6 years ago by jri

  • Status changed from new to accepted

comment:2 Changed 6 years ago by jri

  • Description modified (diff)

comment:3 Changed 6 years ago by Jörg Richter

Core API: add getPlayer() to Association (#667).

The de.deepamehta.core.Association interface provides generic player accessors:

DeepaMehtaObject getPlayer1()
DeepaMehtaObject getPlayer2()

The de.deepamehta.core.Role interface provides a new method:

DeepaMehtaObject getPlayer()

The de.deepamehta.core.AssociationRole interface provides a method to get the player object:

Association getAssociation()

BREAKING CHANGE

1 method is removed from the de.deepamehta.core.Role interface:

Association getAssociation()

This method was used to get the association the role is involved to.
There is no replacement for that method.

See #667.

comment:4 Changed 6 years ago by Jörg Richter

Core API: add getPlayer() to Association (#667).

The de.deepamehta.core.Association interface provides generic player accessors:

DeepaMehtaObject getPlayer1()
DeepaMehtaObject getPlayer2()

The de.deepamehta.core.Role interface provides a new method:

DeepaMehtaObject getPlayer()

The de.deepamehta.core.AssociationRole interface provides a method to get the player object:

Association getAssociation()

BREAKING CHANGE

1 method is removed from the de.deepamehta.core.Role interface:

Association getAssociation()

This method was used to get the association the role is involved to.
There is no replacement for that method.

See #667.

comment:5 Changed 6 years ago by jri

  • Status changed from accepted to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.