inria.meije.rc.sugarcubes
Interface Program

All Superinterfaces:
java.io.Serializable

public interface Program
extends java.io.Serializable

A program in SugarCubes is made of reactive Instructions instantiated using the appropriate methods of the class SC.
The Program interface allows the programmer to handle such reactive programs without having to take care of implementation details of reactive instructions.

Note: A SugarCubes programmer should never implements that interface in any of its own object, as it is definitely not sufficient to implement a reactive program. 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 reactive programs.


Method Summary
 Program getCopy()
          This method allows one to get a copy of a reactive program.
 java.lang.String toString()
          This method returns a string representing the reactive program using the syntax of the Reactive Scripts.
 

Method Detail

getCopy

public Program getCopy()
This method allows one to get a copy of a reactive program. As reactive instructions and configurations are not reentrant in SugarCubes, the user should use that method to duplicate the reactive program used in multiple locations of the overall system.

toString

public java.lang.String toString()
This method returns a string representing the reactive program using the syntax of the Reactive Scripts.
Overrides:
toString in class java.lang.Object