Skip to content

Commit

Permalink
[core] Remove deprecated spaces.
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Galland <galland@arakhne.org>
  • Loading branch information
gallandarakhneorg committed Mar 25, 2020
1 parent 271f201 commit e412ee5
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 382 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
/*
* $Id$
*
* SARL is an general-purpose agent programming language.
* More details on http://www.sarl.io
*
* Copyright (C) 2014-2020 the original authors or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package io.sarl.sre.spaces

import io.sarl.core.OpenEventSpace
import io.sarl.lang.core.Address
import io.sarl.lang.core.EventListener

/**
* Default implementation of an event space which has a local repository.
*
* @author $Author: srodriguez$
* @author $Author: ngaud$
* @author $Author: sgalland$
* @version $FullVersion$
* @mavengroupid $GroupId$
* @mavenartifactid $ArtifactId$
*/
class OpenLocalEventSpace extends AbstractEventSpace implements OpenEventSpace {



def register(entity : EventListener, weakParticipant : boolean) : Address {
entity.registerToSpace(weakParticipant)
}

def unregister(entity : EventListener) : Address {
entity.unregisterFromSpace
}

}
Loading

0 comments on commit e412ee5

Please sign in to comment.