Revision: 89
http://gridsim.svn.sourceforge.net/gridsim/?rev=89&view=rev
Author: xulio
Date: 2008-02-07 02:53:15 -0800 (Thu, 07 Feb 2008)
Log Message:
-----------
First Parcial Version
Added Paths:
-----------
branches/gridsim-4.1-parallel/source/gridsim/exceptions/
branches/gridsim-4.1-parallel/source/gridsim/exceptions/SimulationOrderException.java
branches/gridsim-4.1-parallel/source/gridsim/exceptions/SimulationParameterException.java
Added: branches/gridsim-4.1-parallel/source/gridsim/exceptions/SimulationOrderException.java
===================================================================
--- branches/gridsim-4.1-parallel/source/gridsim/exceptions/SimulationOrderException.java (rev 0)
+++ branches/gridsim-4.1-parallel/source/gridsim/exceptions/SimulationOrderException.java 2008-02-07 10:53:15 UTC (rev 89)
@@ -0,0 +1,34 @@
+/*
+ * Title: GridSim Toolkit
+ * Description: GridSim (Grid Simulation) Toolkit for Modeling and Simulation
+ * of Parallel and Distributed Systems such as Clusters and Grids
+ * Licence: GPL - http://www.gnu.org/copyleft/gpl.html
+ *
+ */
+
+package gridsim.exceptions;
+
+import gridsim.ParameterException;
+
+/**
+ * This exception is thrown when a method with a prerequisite is called before
+ * that the prerequisite is realized.
+ *
+ * @author Xulio López
+ * @since GridSim 4.2
+ */
+public class SimulationOrderException extends ParameterException {
+
+ /**
+ * Eclipse autogenerated serial version UID
+ */
+ private static final long serialVersionUID = -1257052338586906917L;
+
+ /**
+ * Constructs an SimulationOrderException with the incomplete prerequisite.
+ */
+ public SimulationOrderException(String prerequisite) {
+ super("The prerequisite[" + prerequisite + "] is not ready");
+ }
+
+}
Added: branches/gridsim-4.1-parallel/source/gridsim/exceptions/SimulationParameterException.java
===================================================================
--- branches/gridsim-4.1-parallel/source/gridsim/exceptions/SimulationParameterException.java (rev 0)
+++ branches/gridsim-4.1-parallel/source/gridsim/exceptions/SimulationParameterException.java 2008-02-07 10:53:15 UTC (rev 89)
@@ -0,0 +1,35 @@
+/*
+ * Title: GridSim Toolkit
+ * Description: GridSim (Grid Simulation) Toolkit for Modeling and Simulation
+ * of Parallel and Distributed Systems such as Clusters and Grids
+ * Licence: GPL - http://www.gnu.org/copyleft/gpl.html
+ */
+package gridsim.exceptions;
+
+import gridsim.ParameterException;
+
+/**
+ * This exception is thrown when an invalid value is is used as parameter in a
+ * simulation.
+ *
+ * @author Xulio López
+ *
+ */
+public class SimulationParameterException extends ParameterException {
+
+ /**
+ * Eclipse autogenerated serial version UID
+ */
+ private static final long serialVersionUID = 6884571047904598758L;
+
+ /**
+ * Constructs an SimulationParameterException with the invalid parameter.
+ *
+ * @param parameter
+ * with the invalid value
+ */
+ public SimulationParameterException(String parameter) {
+ super("Invalid value for parameter " + parameter);
+ }
+
+}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|