inria.meije.rc.sugarcubes
Interface Configuration
- All Superinterfaces:
- java.io.Serializable
- public interface Configuration
- extends java.io.Serializable
A configuration in SugarCubes is a boolean expression made of status of events.
The Configuration interface allows the programmer to handle such configurations without having to take care of implementation details of such expressions.
Note: A SugarCubes programmer should never implements that interface in any of its own object, as it is definitely not sufficient to implement a configuration. A developer API exists (not documented yet) in SugarCubes for people interested in extending SugarCubes with new Instructions and new Configurations or creating its own implementation of a reactive machine (see inria.meije.rc.sugarcubes.implementation package of the SugarCubes).
The purpose of this interface is only to give a minimal type to handle Configuration expressions in a program.
To build configuration the programmer must use the appropriate methods of the class
SC
.
- See Also:
SC.and
,
SC.or
,
SC.not
,
SC.presence
Method Summary |
Configuration |
getCopy()
Allows one to get a copy of a configuration. |
java.lang.String |
toString()
Returns a string representing the configuration using the syntax of the Reactive Scripts. |
getCopy
public Configuration getCopy()
- Allows one to get a copy of a configuration. As reactive instructions and configurations are not reentrant in SugarCubes, the user should use this method to duplicate the configuration in any point of a reactive program.
toString
public java.lang.String toString()
- Returns a string representing the configuration using the syntax of the Reactive Scripts.
- Overrides:
toString
in class java.lang.Object