Class AbstractLocalState
- java.lang.Object
-
- fr.univ_artois.lgi2a.similar.microkernel.libs.abstractimpl.AbstractLocalState
-
- All Implemented Interfaces:
ILocalState
- Direct Known Subclasses:
AbstractLocalStateOfAgent
,AbstractLocalStateOfEnvironment
public abstract class AbstractLocalState extends Object implements ILocalState
An abstract implementation of theILocalState
interface, providing a default behavior to the method of the interface.- Author:
- Yoann Kubera
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractLocalState(LevelIdentifier level)
Builds an initialized instance of this class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LevelIdentifier
getLevel()
Gets the level for which this local state was defined.
-
-
-
Constructor Detail
-
AbstractLocalState
protected AbstractLocalState(LevelIdentifier level)
Builds an initialized instance of this class.- Parameters:
level
- The level for which this local state was defined.
-
-
Method Detail
-
getLevel
public LevelIdentifier getLevel()
Gets the level for which this local state was defined.It returns the value "l" within the expression φ+a(t, l), φ-a(t, l) (public and private local state of an agent), φ+ω(t, l) or φ-ω(t, l) (public and private local state of the environment).
- Specified by:
getLevel
in interfaceILocalState
- Returns:
- The identifier of the level for which this local state was defined.
-
-