From 62c113b3bae2f5701b057ce45043cbdf50346e67 Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Fri, 8 Sep 2017 13:17:11 +0200 Subject: Remove obsolete messaging classes This change removes some unused messaging classes, which have become obselete after the design change. --- .../opendc/simulator/messaging/DuplexChannel.kt | 33 ---------------------- .../opendc/simulator/messaging/DuplexPort.kt | 33 ---------------------- .../opendc/simulator/messaging/ReadableChannel.kt | 33 ---------------------- .../opendc/simulator/messaging/ReadablePort.kt | 33 ---------------------- .../opendc/simulator/messaging/WritableChannel.kt | 33 ---------------------- .../opendc/simulator/messaging/WritablePort.kt | 33 ---------------------- 6 files changed, 198 deletions(-) delete mode 100644 opendc-core/src/main/kotlin/nl/atlarge/opendc/simulator/messaging/DuplexChannel.kt delete mode 100644 opendc-core/src/main/kotlin/nl/atlarge/opendc/simulator/messaging/DuplexPort.kt delete mode 100644 opendc-core/src/main/kotlin/nl/atlarge/opendc/simulator/messaging/ReadableChannel.kt delete mode 100644 opendc-core/src/main/kotlin/nl/atlarge/opendc/simulator/messaging/ReadablePort.kt delete mode 100644 opendc-core/src/main/kotlin/nl/atlarge/opendc/simulator/messaging/WritableChannel.kt delete mode 100644 opendc-core/src/main/kotlin/nl/atlarge/opendc/simulator/messaging/WritablePort.kt (limited to 'opendc-core') diff --git a/opendc-core/src/main/kotlin/nl/atlarge/opendc/simulator/messaging/DuplexChannel.kt b/opendc-core/src/main/kotlin/nl/atlarge/opendc/simulator/messaging/DuplexChannel.kt deleted file mode 100644 index 942f56c8..00000000 --- a/opendc-core/src/main/kotlin/nl/atlarge/opendc/simulator/messaging/DuplexChannel.kt +++ /dev/null @@ -1,33 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2017 atlarge-research - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package nl.atlarge.opendc.simulator.messaging - -/** - * A [DuplexChannel] instance allows bi-directional communication over the channel. - * - * @param T The shape of the label of the edge of this channel. - * @author Fabian Mastenbroek (f.s.mastenbroek@student.tudelft.nl) - */ -interface DuplexChannel: Channel, Readable, Writable diff --git a/opendc-core/src/main/kotlin/nl/atlarge/opendc/simulator/messaging/DuplexPort.kt b/opendc-core/src/main/kotlin/nl/atlarge/opendc/simulator/messaging/DuplexPort.kt deleted file mode 100644 index bc67ae65..00000000 --- a/opendc-core/src/main/kotlin/nl/atlarge/opendc/simulator/messaging/DuplexPort.kt +++ /dev/null @@ -1,33 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2017 atlarge-research - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package nl.atlarge.opendc.simulator.messaging - -/** - * A [DuplexPort] instance allows bi-directional communication with multiple channels. - * - * @param T The shape of the label of the edges of the channels of this port. - * @author Fabian Mastenbroek (f.s.mastenbroek@student.tudelft.nl) - */ -interface DuplexPort: Port>, Readable, Writable diff --git a/opendc-core/src/main/kotlin/nl/atlarge/opendc/simulator/messaging/ReadableChannel.kt b/opendc-core/src/main/kotlin/nl/atlarge/opendc/simulator/messaging/ReadableChannel.kt deleted file mode 100644 index 6bbc3b7d..00000000 --- a/opendc-core/src/main/kotlin/nl/atlarge/opendc/simulator/messaging/ReadableChannel.kt +++ /dev/null @@ -1,33 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2017 atlarge-research - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package nl.atlarge.opendc.simulator.messaging - -/** - * A [ReadableChannel] instance allows objects to receive messages from the channel. - * - * @param T The shape of the label of the edge of this channel. - * @author Fabian Mastenbroek (f.s.mastenbroek@student.tudelft.nl) - */ -interface ReadableChannel: Channel, Readable diff --git a/opendc-core/src/main/kotlin/nl/atlarge/opendc/simulator/messaging/ReadablePort.kt b/opendc-core/src/main/kotlin/nl/atlarge/opendc/simulator/messaging/ReadablePort.kt deleted file mode 100644 index a8ad6e16..00000000 --- a/opendc-core/src/main/kotlin/nl/atlarge/opendc/simulator/messaging/ReadablePort.kt +++ /dev/null @@ -1,33 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2017 atlarge-research - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package nl.atlarge.opendc.simulator.messaging - -/** - * A [ReadablePort] instance allows objects to receive messages from the channel. - * - * @param T The shape of the label of the edges of the channels of this port. - * @author Fabian Mastenbroek (f.s.mastenbroek@student.tudelft.nl) - */ -interface ReadablePort: Port>, Readable diff --git a/opendc-core/src/main/kotlin/nl/atlarge/opendc/simulator/messaging/WritableChannel.kt b/opendc-core/src/main/kotlin/nl/atlarge/opendc/simulator/messaging/WritableChannel.kt deleted file mode 100644 index fcfbd5b4..00000000 --- a/opendc-core/src/main/kotlin/nl/atlarge/opendc/simulator/messaging/WritableChannel.kt +++ /dev/null @@ -1,33 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2017 atlarge-research - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package nl.atlarge.opendc.simulator.messaging - -/** - * A [WritableChannel] instance allows objects to write messages to the channel. - * - * @param T The shape of the label of the edge of this channel. - * @author Fabian Mastenbroek (f.s.mastenbroek@student.tudelft.nl) - */ -interface WritableChannel: Channel, Writable diff --git a/opendc-core/src/main/kotlin/nl/atlarge/opendc/simulator/messaging/WritablePort.kt b/opendc-core/src/main/kotlin/nl/atlarge/opendc/simulator/messaging/WritablePort.kt deleted file mode 100644 index a475709a..00000000 --- a/opendc-core/src/main/kotlin/nl/atlarge/opendc/simulator/messaging/WritablePort.kt +++ /dev/null @@ -1,33 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2017 atlarge-research - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package nl.atlarge.opendc.simulator.messaging - -/** - * A [WritablePort] instance allows objects to write messages to multiple channels. - * - * @param T The shape of the label of the edges of the channels of this port. - * @author Fabian Mastenbroek (f.s.mastenbroek@student.tudelft.nl) - */ -interface WritablePort: Port>, Writable -- cgit v1.2.3